aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/git.example.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-17 15:25:55 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 03:50:27 +0530
commit2ac22a72455341a3efced289782fe5daf5d788ee (patch)
treedad5f0cb7ea6c2dce9426462e35cc518d73ad91f /modules/private/git.example.nix
parentf001094478a394b70f32425c7fcc0d715950b851 (diff)
downloadhome-manager-config-2ac22a72455341a3efced289782fe5daf5d788ee.tar.gz
home-manager-config-2ac22a72455341a3efced289782fe5daf5d788ee.zip
refactor: rewrote how ssh keys are handled in gopass-ssh-load
- all ssh keys that are used under ssh/ have to be explicitely added via security.ssh.gopassKeys = [ ... ]
Diffstat (limited to 'modules/private/git.example.nix')
-rw-r--r--modules/private/git.example.nix17
1 files changed, 11 insertions, 6 deletions
diff --git a/modules/private/git.example.nix b/modules/private/git.example.nix
index 236687e..da4d77e 100644
--- a/modules/private/git.example.nix
+++ b/modules/private/git.example.nix
@@ -1,12 +1,17 @@
# Git example - Template for configuring git identity and signing
{ ... }:
{
- config.development.git = {
- username = "Arpit Chakladar";
- email = "arpitchakladar+git@gmail.com";
- signing = {
- key = "EXAMPLE_GPG_KEY_ID";
- signByDefault = true;
+ config = {
+ development.git = {
+ username = "Your Name";
+ email = "you@example.com";
+ signing = {
+ key = "EXAMPLE_GPG_KEY_ID";
+ signByDefault = true;
+ };
};
+
+ # SSH keys to load from gopass (entries under ssh/ in the gopass store)
+ security.ssh.gopassKeys = [ "github" ];
};
}