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
|
@ -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