Extract a pass module
This commit is contained in:
parent
9e1b77930d
commit
899dfb9f21
5 changed files with 34 additions and 10 deletions
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./docker.nix
|
||||
./podman.nix
|
||||
./password-store.nix
|
||||
];
|
||||
}
|
||||
|
|
30
modules/nixos/cli/password-store.nix
Normal file
30
modules/nixos/cli/password-store.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.nixosModules.cli.password-store;
|
||||
in
|
||||
{
|
||||
options.nixosModules.cli.password-store.enable = mkEnableOption "Enable pass";
|
||||
|
||||
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
|
||||
]
|
||||
))
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue