aboutsummaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/arpit/default.nix (renamed from users/arpit.nix)5
-rw-r--r--users/arpit/private.example.nix55
2 files changed, 56 insertions, 4 deletions
diff --git a/users/arpit.nix b/users/arpit/default.nix
index 837d2bf..9348884 100644
--- a/users/arpit.nix
+++ b/users/arpit/default.nix
@@ -2,10 +2,7 @@
{ config, ... }:
{
imports = [
- ../modules/private/calcurse.nix
- ../modules/private/email.nix
- ../modules/private/git.nix
- ../modules/private/gopass.nix
+ ./private.nix
];
nixpkgs.config.allowUnfree = true;
diff --git a/users/arpit/private.example.nix b/users/arpit/private.example.nix
new file mode 100644
index 0000000..77e5f54
--- /dev/null
+++ b/users/arpit/private.example.nix
@@ -0,0 +1,55 @@
+{ ... }:
+{
+ # Calcurse - Template for configuring calcurse, specially syncing
+ config.office.calcurse.sync = {
+ remote = "YOUR_REPOSITORY_URL";
+ credential = {
+ username = "example";
+ passwordGopassPath = "websites/github.com/example/tokens/calendar";
+ };
+ };
+
+ # Email - 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
+ };
+ };
+ };
+
+ # Git - Template for configuring git identity and signing
+ 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)
+ config.security.ssh.gopassKeys = [
+ "github"
+ "gitlab"
+ ];
+
+ # Gopass - Template for configuring gopass, specially syncing
+ config.security.gopass.sync = {
+ remote = "YOUR_REPOSITORY_URL";
+ credential = {
+ username = "example";
+ passwordGopassPath = "websites/github.com/example/tokens/calendar";
+ };
+ };
+}