rofi-pass: add package option
This commit is contained in:
parent
8aac47a140
commit
7ee73f5363
|
@ -7,11 +7,14 @@ let
|
||||||
cfg = config.programs.rofi.pass;
|
cfg = config.programs.rofi.pass;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.seylerius ];
|
meta.maintainers = with maintainers; [ seylerius robwalt ];
|
||||||
|
|
||||||
options.programs.rofi.pass = {
|
options.programs.rofi.pass = {
|
||||||
enable = mkEnableOption "rofi integration with password-store";
|
enable = mkEnableOption "rofi integration with password-store";
|
||||||
|
|
||||||
|
package =
|
||||||
|
mkPackageOption pkgs "rofi-pass" { example = "pkgs.rofi-pass-wayland"; };
|
||||||
|
|
||||||
stores = mkOption {
|
stores = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
@ -37,7 +40,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.rofi-pass ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."rofi-pass/config".text = optionalString (cfg.stores != [ ])
|
xdg.configFile."rofi-pass/config".text = optionalString (cfg.stores != [ ])
|
||||||
("root=" + (concatStringsSep ":" cfg.stores) + "\n") + cfg.extraConfig
|
("root=" + (concatStringsSep ":" cfg.stores) + "\n") + cfg.extraConfig
|
||||||
|
|
Loading…
Reference in a new issue