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";
|
|
|
|
stores = "${config.home.homeDirectory}/.local/share/gopass/stores";
|
|
|
|
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;
|
2022-07-12 10:46:51 +02:00
|
|
|
PASSWORD_STORE_KEY = "B51D4548A4846E3C8D115C808333CFB0B9D3244D";
|
|
|
|
};
|
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;
|
|
|
|
mounts = { lan = "${stores}/lan"; };
|
|
|
|
};
|
|
|
|
};
|
2022-01-18 09:32:55 +01:00
|
|
|
}
|