1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-09 12:49:44 +01:00

papis: add program.papis.package option

Add `programs.papis.package` option to override default package used.
This can be useful to track latest rev from repository via a flake.
This commit is contained in:
O. C. Taskin 2024-07-16 15:19:18 +02:00 committed by GitHub
parent a38f88045e
commit afd2021bed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,8 @@ in {
options.programs.papis = {
enable = mkEnableOption "papis";
package = mkPackageOption pkgs "papis" { };
settings = mkOption {
type = with types; attrsOf (oneOf [ bool int str ]);
default = { };
@ -84,7 +86,7 @@ in {
(", namely " + concatStringsSep "," defaultLibraries);
}];
home.packages = [ pkgs.papis ];
home.packages = [ cfg.package ];
xdg.configFile."papis/config" =
mkIf (cfg.libraries != { }) { text = generators.toINI { } settingsIni; };