feat/kile-v2
Ricard Illa 2022-09-26 16:02:42 +02:00
parent fe2d77e66d
commit 69e254265f
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 23 additions and 3 deletions

View File

@ -93,6 +93,7 @@
".mozilla" ".mozilla"
".newsboat" ".newsboat"
".password-store" ".password-store"
".local/share/gopass/stores"
".vagrant.d" ".vagrant.d"
".vdirsyncer" ".vdirsyncer"
".virtualenvs" ".virtualenvs"

View File

@ -1,13 +1,32 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ let
password-store = "${config.home.homeDirectory}/.password-store";
stores = "${config.home.homeDirectory}/.local/share/gopass/stores";
in {
programs.password-store = { programs.password-store = {
enable = true; enable = true;
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]); package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
settings = { settings = {
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store"; PASSWORD_STORE_DIR = password-store;
PASSWORD_STORE_KEY = "B51D4548A4846E3C8D115C808333CFB0B9D3244D"; PASSWORD_STORE_KEY = "B51D4548A4846E3C8D115C808333CFB0B9D3244D";
}; };
}; };
home.packages = [pkgs.zbar]; 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"; };
};
};
} }