Make the pass extensions configurable
This commit is contained in:
parent
899dfb9f21
commit
547895664b
2 changed files with 19 additions and 10 deletions
|
@ -11,20 +11,21 @@ let
|
|||
cfg = config.nixosModules.cli.password-store;
|
||||
in
|
||||
{
|
||||
options.nixosModules.cli.password-store.enable = mkEnableOption "Enable pass";
|
||||
options.nixosModules.cli.password-store = {
|
||||
enable = mkEnableOption "Enable pass";
|
||||
|
||||
extensions = mkOption {
|
||||
default = [ ];
|
||||
type = types.listOf types.package;
|
||||
description = "pass extensions to install.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
passmenu-otp
|
||||
|
||||
(pass.withExtensions (
|
||||
e: with e; [
|
||||
passExtensions.pass-audit
|
||||
passExtensions.pass-import
|
||||
passExtensions.pass-otp
|
||||
passExtensions.pass-update
|
||||
]
|
||||
))
|
||||
(pass.withExtensions (e: with e; cfg.extensions))
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue