mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +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:
parent
a38f88045e
commit
afd2021bed
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,8 @@ in {
|
||||||
options.programs.papis = {
|
options.programs.papis = {
|
||||||
enable = mkEnableOption "papis";
|
enable = mkEnableOption "papis";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "papis" { };
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = with types; attrsOf (oneOf [ bool int str ]);
|
type = with types; attrsOf (oneOf [ bool int str ]);
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -84,7 +86,7 @@ in {
|
||||||
(", namely " + concatStringsSep "," defaultLibraries);
|
(", namely " + concatStringsSep "," defaultLibraries);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
home.packages = [ pkgs.papis ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."papis/config" =
|
xdg.configFile."papis/config" =
|
||||||
mkIf (cfg.libraries != { }) { text = generators.toINI { } settingsIni; };
|
mkIf (cfg.libraries != { }) { text = generators.toINI { } settingsIni; };
|
||||||
|
|
Loading…
Reference in a new issue