Extract a pass module

This commit is contained in:
Oliver Davies 2025-04-23 19:38:55 +01:00
parent 9e1b77930d
commit 899dfb9f21
5 changed files with 34 additions and 10 deletions

View file

@ -10,6 +10,7 @@
nixosModules = {
cli = {
docker.enable = true;
password-store.enable = true;
};
};

View file

@ -43,16 +43,6 @@
fastfetch
mermaid-cli
mkcert
passmenu-otp
(pass.withExtensions (
e: with e; [
passExtensions.pass-audit
passExtensions.pass-import
passExtensions.pass-otp
passExtensions.pass-update
]
))
];
home-manager = {

View file

@ -13,6 +13,8 @@
];
nixosModules = {
cli.password-store.enable = true;
core = {
bluetooth.enable = true;
openssh.enable = true;

View file

@ -2,5 +2,6 @@
imports = [
./docker.nix
./podman.nix
./password-store.nix
];
}

View 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
]
))
];
};
}