diff options
Diffstat (limited to 'modules/private')
| -rw-r--r-- | modules/private/email.example.nix | 30 | ||||
| -rw-r--r-- | modules/private/git.example.nix | 17 |
2 files changed, 27 insertions, 20 deletions
diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix index 16d8402..e6b4c2f 100644 --- a/modules/private/email.example.nix +++ b/modules/private/email.example.nix @@ -1,20 +1,22 @@ # Email example - Template for configuring neomutt email accounts { ... }: { - config.communication.neomutt.accounts = { - "example@gmail.com" = { - realName = "Example User"; - address = "user@gmail.com"; - passwordGopassSecret = "mail/user@gmail.com"; - flavor = "gmail.com"; - primary = true; - neomutt.extraConfig = '' - set pgp_default_key = YOUR_GPG_KEY_FINGERPRINT - ''; - gpg = { - key = "YOUR_GPG_KEY_ID"; - signByDefault = true; - encryptByDefault = false; # set true only if you also want auto-encrypt + config = { + communication.neomutt.accounts = { + "example@gmail.com" = { + realName = "Example User"; + address = "user@gmail.com"; + passwordGopassSecret = "mail/user@gmail.com"; + flavor = "gmail.com"; + primary = true; + neomutt.extraConfig = '' + set pgp_default_key = YOUR_GPG_KEY_FINGERPRINT + ''; + gpg = { + key = "YOUR_GPG_KEY_ID"; + signByDefault = true; + encryptByDefault = false; # set true only if you also want auto-encrypt + }; }; }; }; 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" ]; }; } |
