nix-configurations/home/features/cli/secrets.nix

29 lines
600 B
Nix
Raw Normal View History

2023-02-01 11:38:23 +00:00
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.features.cli.secrets;
in {
options.features.cli.secrets.enable = mkEnableOption "enable secrets";
config = mkIf cfg.enable {
programs.password-store = {
enable = true;
2023-06-17 15:03:03 +00:00
package = pkgs.pass-wayland.withExtensions (exts: [ exts.pass-otp exts.pass-import ]);
2023-02-01 11:38:23 +00:00
};
programs.gpg = { enable = true; };
services.gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
enableSshSupport = true;
};
2023-06-15 12:51:57 +00:00
programs.browserpass.enable = true;
2023-02-05 15:25:55 +00:00
home.packages = with pkgs; [
pinentry
];
2023-02-01 11:38:23 +00:00
};
}