aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-10 02:05:18 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-10 02:05:18 +0530
commitbf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e (patch)
tree596912421d29f6e58a9a45108df52cb4e1e68876 /modules/private
parentee32d0d0813f9870d89fb7d821633fd8b4a9987a (diff)
downloadhome-manager-config-bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e.tar.gz
home-manager-config-bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e.zip
feat: using neomutt instead of meli for the tui email client
using a private module that stores the private config options for the user which are not to be pushed to the public repo
Diffstat (limited to 'modules/private')
-rw-r--r--modules/private/default.example.nix11
-rw-r--r--modules/private/email.example.nix18
-rw-r--r--modules/private/git.example.nix12
3 files changed, 10 insertions, 31 deletions
diff --git a/modules/private/default.example.nix b/modules/private/default.example.nix
deleted file mode 100644
index e5b1a84..0000000
--- a/modules/private/default.example.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-{ config, ... }:
-
-{
- # This file is a template for modules/private/default.nix
- # Copy to modules/private/default.nix and fill in your secrets.
-
- imports = [
- ./git.nix
- ./email.nix
- ];
-}
diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix
index ae3b475..0e35e26 100644
--- a/modules/private/email.example.nix
+++ b/modules/private/email.example.nix
@@ -1,16 +1,14 @@
{ config, ... }:
-let
- mailDir = "${config.home.homeDirectory}/.local/mail";
-in
{
- accounts.email.accounts = {
+ config.accounts.email.accounts = {
"example" = {
realName = "Example User";
address = "user@example.com";
userName = "user@example.com";
passwordCommand = "${config.programs.gopass.package}/bin/gopass show -o mail/example";
flavor = "gmail.com";
+ primary = true;
mbsync = {
enable = true;
@@ -28,16 +26,4 @@ in
imapnotify.enable = false;
};
};
-
- # Mbsync config
- programs.mbsync = {
- enable = true;
- directory = mailDir;
- };
-
- # Notmuch config
- programs.notmuch = {
- enable = true;
- database.path = "${mailDir}/.notmuch";
- };
}
diff --git a/modules/private/git.example.nix b/modules/private/git.example.nix
index 888c769..70e59b4 100644
--- a/modules/private/git.example.nix
+++ b/modules/private/git.example.nix
@@ -1,8 +1,12 @@
-{ config, ... }:
+{ ... }:
{
- programs.git.signing = {
- key = "EXAMPLE_GPG_KEY_ID";
- signByDefault = true;
+ config.programs.git = {
+ username = "Arpit Chakladar";
+ email = "arpitchakladar+git@gmail.com";
+ signing = {
+ key = "EXAMPLE_GPG_KEY_ID";
+ signByDefault = true;
+ };
};
}