nix-config/modules/nixos/cli/password-store.nix

30 lines
468 B
Nix
Raw Permalink Normal View History

2025-04-23 19:38:55 +01:00
{
config,
lib,
pkgs,
...
}:
with lib;
let
2025-05-03 16:50:27 +01:00
cfg = config.cli.password-store;
2025-04-23 19:38:55 +01:00
in
{
2025-05-03 16:50:27 +01:00
options.cli.password-store = {
2025-04-23 19:50:10 +01:00
enable = mkEnableOption "Enable pass";
extensions = mkOption {
default = [ ];
type = types.listOf types.package;
description = "pass extensions to install.";
};
};
2025-04-23 19:38:55 +01:00
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
2025-04-23 19:50:10 +01:00
(pass.withExtensions (e: with e; cfg.extensions))
2025-04-23 19:38:55 +01:00
];
};
}