diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/private/calcurse.example.nix | 13 | ||||
| -rw-r--r-- | modules/private/email.example.nix | 23 | ||||
| -rw-r--r-- | modules/private/git.example.nix | 20 | ||||
| -rw-r--r-- | modules/private/gopass.example.nix | 13 | ||||
| -rw-r--r-- | modules/system/nix-update/nix-update.sh | 10 |
5 files changed, 4 insertions, 75 deletions
diff --git a/modules/private/calcurse.example.nix b/modules/private/calcurse.example.nix deleted file mode 100644 index 681d343..0000000 --- a/modules/private/calcurse.example.nix +++ /dev/null @@ -1,13 +0,0 @@ -# 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"; - }; - }; - }; -} diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix deleted file mode 100644 index e6b4c2f..0000000 --- a/modules/private/email.example.nix +++ /dev/null @@ -1,23 +0,0 @@ -# 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 - }; - }; - }; - }; -} diff --git a/modules/private/git.example.nix b/modules/private/git.example.nix deleted file mode 100644 index 00999cd..0000000 --- a/modules/private/git.example.nix +++ /dev/null @@ -1,20 +0,0 @@ -# Git example - 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) - security.ssh.gopassKeys = [ - "github" - "gitlab" - ]; - }; -} diff --git a/modules/private/gopass.example.nix b/modules/private/gopass.example.nix deleted file mode 100644 index 2d783c9..0000000 --- a/modules/private/gopass.example.nix +++ /dev/null @@ -1,13 +0,0 @@ -# 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"; - }; - }; - }; -} diff --git a/modules/system/nix-update/nix-update.sh b/modules/system/nix-update/nix-update.sh index 0f1c0c1..0f499db 100644 --- a/modules/system/nix-update/nix-update.sh +++ b/modules/system/nix-update/nix-update.sh @@ -61,8 +61,8 @@ update_home_manager() { echo "==> Updating home-manager..." cd "$HM_DIR" - echo " Staging modules/private..." - git add modules/private -f + echo " Staging users/arpit/private.nix..." + git add users/arpit/private.nix -f if [[ "$ONLY_SWITCH" == false ]]; then echo " Running nix flake update..." @@ -74,10 +74,8 @@ update_home_manager() { home-manager switch --flake "$HM_DIR#arpit" fi - echo " Unstaging modules/private..." - for f in modules/private/*.nix; do - [[ "$f" == *.example.nix ]] || git rm --cached "$f" - done + echo " Unstaging users/arpit/private.nix..." + git rm --cached users/arpit/private.nix echo "==> home-manager update complete" } |
