Add gpg and password-store to Monarch

Only set git credential.helper if using password-store
This commit is contained in:
Evie Litherland-Smith 2023-08-31 08:21:21 +01:00
parent fea6517bad
commit 22929fa5d8
3 changed files with 10 additions and 2 deletions

View file

@ -21,7 +21,6 @@
extraConfig = {
pull.rebase = false;
init.defaultBranch = "main";
credential.helper = "${pkgs.gitFull}/bin/git-credential-libsecret";
};
};
}

View file

@ -8,6 +8,8 @@
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
settings.PASSWORD_STORE_DIR = "$HOME/.password-store";
};
git.extraConfig.credential.helper =
"${pkgs.gitFull}/bin/git-credential-libsecret";
};
services.gpg-agent = {
enable = true;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ pkgs, ... }:
let
username = "tux";
homeDirectory = "/Users/${username}";
@ -8,6 +8,7 @@ in {
../../home/git
../../home/ssh
../../home/tui
../../home/tmux
../../home/alacritty
../../home/emacs
];
@ -25,6 +26,12 @@ in {
'';
};
emacs.package = pkgs.emacs29;
gpg.enable = true;
password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
settings.PASSWORD_STORE_DIR = "$HOME/.password-store";
};
};
services.syncthing.enable = true;
}