mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00: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:
parent
a38f88045e
commit
afd2021bed
1 changed files with 3 additions and 1 deletions
|
@ -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; };
|
||||
|
|
Loading…
Reference in a new issue