nix-config/modules/home-manager/pass/default.nix

32 lines
801 B
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
2022-09-26 16:02:42 +02:00
let
password-store = "${config.home.homeDirectory}/.password-store";
2023-08-01 10:42:38 +02:00
in
{
2022-07-12 10:46:51 +02:00
programs.password-store = {
2022-01-18 09:32:55 +01:00
enable = true;
2022-07-12 10:46:51 +02:00
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
settings = {
2022-09-26 16:02:42 +02:00
PASSWORD_STORE_DIR = password-store;
2023-08-01 10:42:38 +02:00
PASSWORD_STORE_KEY = "2E0A7CADFF84D08BA94273AA101F79336E07C850";
2022-07-12 10:46:51 +02:00
};
2022-01-18 09:32:55 +01:00
};
2022-09-26 16:02:42 +02:00
home.packages = [ pkgs.zbar pkgs.gopass ];
home.file.gopass_config = {
executable = true;
target = "${config.xdg.configHome}/gopass/config.yml";
text = pkgs.lib.generators.toYAML { } {
autoclip = false;
autoimport = false;
cliptimeout = 45;
exportkeys = true;
nopager = false;
notifications = true;
parsing = true;
path = password-store;
safecontent = false;
};
};
2022-01-18 09:32:55 +01:00
}