summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-01-16 09:17:54 -0500
committerBen Sima <ben@bsima.me>2021-01-16 09:17:54 -0500
commitf6ecccfa1542076ac72507790a6dd9cd0c8a9bbf (patch)
treee79ab353b4b2027182bb2d2b33cd29243609751e
parent37be4f0fb76b75902745a4d7d7cd4ae29e0ea070 (diff)
update email stuff
-rw-r--r--lib/email.nix2
-rw-r--r--linux.nix7
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/email.nix b/lib/email.nix
index 449e3d8..cfeb423 100644
--- a/lib/email.nix
+++ b/lib/email.nix
@@ -43,7 +43,7 @@ in
expunge = "none";
};
notmuch.enable = true;
- passwordCommand = "cat ~/keybase/private/bsima/ben@simatime.com";
+ passwordCommand = "${pkgs.coreutils}/bin/cat ~/keybase/private/bsima/ben@simatime.com";
msmtp.enable = true;
};
diff --git a/linux.nix b/linux.nix
index 7e6a775..7a84646 100644
--- a/linux.nix
+++ b/linux.nix
@@ -2,7 +2,7 @@
let
homedir = builtins.getEnv "HOME";
- hostname = builtins.getEnv "HOSTNAME";
+ hostname = lib.strings.removeSuffix "\n" (builtins.readFile /etc/hostname);
gpgid = "D09299626FA78AF8";
cmdtree = pkgs.stdenv.mkDerivation {
name = "cmdtree";
@@ -177,8 +177,8 @@ in
keybase.enable = true;
mbsync = {
- enable = false; #if hostname == "lithium" then true else false;
- frequency = "*:0/15";
+ enable = if hostname == "lithium" then true else false;
+ frequency = "*:0/5";
postExec = "${pkgs.notmuch}/bin/notmuch new";
};
@@ -366,6 +366,7 @@ in
enableSshSupport = false;
enableExtraSocket = true;
verbose = true;
+ pinentryFlavor = "curses";
extraConfig = ''
allow-emacs-pinentry
# StreamLocalBindUnlink yes