mirror of
https://github.com/nix-community/home-manager
synced 2024-12-03 16:39:46 +01:00
rofi-pass: add package option
This commit is contained in:
parent
8aac47a140
commit
7ee73f5363
1 changed files with 5 additions and 2 deletions
|
@ -7,11 +7,14 @@ let
|
|||
cfg = config.programs.rofi.pass;
|
||||
|
||||
in {
|
||||
meta.maintainers = [ maintainers.seylerius ];
|
||||
meta.maintainers = with maintainers; [ seylerius robwalt ];
|
||||
|
||||
options.programs.rofi.pass = {
|
||||
enable = mkEnableOption "rofi integration with password-store";
|
||||
|
||||
package =
|
||||
mkPackageOption pkgs "rofi-pass" { example = "pkgs.rofi-pass-wayland"; };
|
||||
|
||||
stores = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
|
@ -37,7 +40,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.rofi-pass ];
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
xdg.configFile."rofi-pass/config".text = optionalString (cfg.stores != [ ])
|
||||
("root=" + (concatStringsSep ":" cfg.stores) + "\n") + cfg.extraConfig
|
||||
|
|
Loading…
Reference in a new issue