mail, contacts, pass, linux and mac mbsync and vdirsyncer services, adding Passwords for these services to pass and syncthing, upping gpg agent timeout to infinity..
This commit is contained in:
parent
bd36e83523
commit
72b6cc0d4b
5 changed files with 88 additions and 26 deletions
|
|
@ -245,6 +245,13 @@ in
|
|||
|
||||
programs.gpg.enable = true;
|
||||
|
||||
programs.password-store = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PASSWORD_STORE_DIR = "$HOME/.password-store";
|
||||
};
|
||||
};
|
||||
|
||||
programs.keychain = {
|
||||
enable = true;
|
||||
keys = [ "id_rsa" "id_rsa_mr" "2B3A6377" ];
|
||||
|
|
|
|||
36
home-gui.nix
36
home-gui.nix
|
|
@ -42,22 +42,22 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
userSettings = {
|
||||
vim_mode = true;
|
||||
theme = {
|
||||
mode = "system";
|
||||
light = "Catppuccin Latte";
|
||||
dark = "Catppuccin Frappé";
|
||||
};
|
||||
buffer_font_size = 16;
|
||||
buffer_font_family = "Iosevka Nerd Font Mono";
|
||||
vim = {
|
||||
enable_vim_sneak = true;
|
||||
use_smartcase_find = true;
|
||||
};
|
||||
format_on_save = "off";
|
||||
};
|
||||
};
|
||||
# programs.zed-editor = {
|
||||
# enable = true;
|
||||
# userSettings = {
|
||||
# vim_mode = true;
|
||||
# theme = {
|
||||
# mode = "system";
|
||||
# light = "Catppuccin Latte";
|
||||
# dark = "Catppuccin Frappé";
|
||||
# };
|
||||
# buffer_font_size = 16;
|
||||
# buffer_font_family = "Iosevka Nerd Font Mono";
|
||||
# vim = {
|
||||
# enable_vim_sneak = true;
|
||||
# use_smartcase_find = true;
|
||||
# };
|
||||
# format_on_save = "off";
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,6 +81,10 @@ in
|
|||
path = "~/Sync";
|
||||
devices = [ "Laptop" "Phone" ];
|
||||
};
|
||||
"Passwords" = {
|
||||
path = "~/.password-store";
|
||||
devices = [ "Laptop" ]; # just Mac, not phone
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -88,13 +92,23 @@ in
|
|||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
defaultCacheTtl = 86400;
|
||||
maxCacheTtl = 86400;
|
||||
defaultCacheTtlSsh = 86400;
|
||||
maxCacheTtlSsh = 86400;
|
||||
defaultCacheTtl = 34560000;
|
||||
maxCacheTtl = 34560000;
|
||||
defaultCacheTtlSsh = 34560000;
|
||||
maxCacheTtlSsh = 34560000;
|
||||
pinentry.package = pkgs.pinentry-all;
|
||||
};
|
||||
|
||||
services.mbsync = {
|
||||
enable = true;
|
||||
frequency = "*:0/5"; # every 5 minutes
|
||||
};
|
||||
|
||||
services.vdirsyncer = {
|
||||
enable = true;
|
||||
frequency = "*:0/15"; # every 15 minutes
|
||||
};
|
||||
|
||||
# Niri config - imported from separate file
|
||||
# xdg.configFile."niri/config.kdl".source = ./niri-config.kdl;
|
||||
|
||||
|
|
|
|||
24
home-mac.nix
24
home-mac.nix
|
|
@ -15,11 +15,31 @@
|
|||
target = ".gnupg/gpg-agent.conf";
|
||||
text = ''
|
||||
pinentry-program ${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac
|
||||
default-cache-ttl 86400
|
||||
max-cache-ttl 86400
|
||||
default-cache-ttl 34560000
|
||||
max-cache-ttl 34560000
|
||||
'';
|
||||
};
|
||||
|
||||
launchd.agents.mbsync = {
|
||||
enable = true;
|
||||
config = {
|
||||
ProgramArguments = [ "${pkgs.isync}/bin/mbsync" "-a" ];
|
||||
StartInterval = 300; # every 5 minutes
|
||||
StandardOutPath = "/tmp/mbsync.log";
|
||||
StandardErrorPath = "/tmp/mbsync.err";
|
||||
};
|
||||
};
|
||||
|
||||
launchd.agents.vdirsyncer = {
|
||||
enable = true;
|
||||
config = {
|
||||
ProgramArguments = [ "${pkgs.vdirsyncer}/bin/vdirsyncer" "sync" ];
|
||||
StartInterval = 900; # every 15 minutes
|
||||
StandardOutPath = "/tmp/vdirsyncer.log";
|
||||
StandardErrorPath = "/tmp/vdirsyncer.err";
|
||||
};
|
||||
};
|
||||
|
||||
# https://codeberg.org/adamcstephens/dotfiles/src/commit/e14f35f6e9a9cb9174016948c512c0db364e0dec/apps/fish/init.fish
|
||||
programs.fish.shellInit = ''
|
||||
fenv source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
programs.msmtp.enable = true;
|
||||
programs.himalaya.enable = true;
|
||||
programs.vdirsyncer.enable = true;
|
||||
programs.khard.enable = true;
|
||||
programs.aerc = {
|
||||
enable = true;
|
||||
extraConfig.general.unsafe-accounts-conf = true;
|
||||
|
|
@ -32,7 +33,7 @@
|
|||
signByDefault = true;
|
||||
key = "AD11750151C10881970BD943AB49BD6B2B3A6377";
|
||||
};
|
||||
passwordCommand = "gpg -dq ${builtins.getEnv "HOME"}/.dustinswan@fastmail.com-password.gpg";
|
||||
passwordCommand = "pass show email/fastmail";
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "maildir";
|
||||
|
|
@ -69,13 +70,33 @@
|
|||
};
|
||||
primary = true;
|
||||
remote = {
|
||||
passwordCommand = ["~/dotfiles/bin/decrypt-password" "dustinswan@fastmail.com"];
|
||||
passwordCommand = ["pass" "show" "email/fastmail"];
|
||||
type = "caldav";
|
||||
url = "https://caldav.fastmail.com/dav/";
|
||||
userName = "dustinswan@fastmail.com";
|
||||
};
|
||||
vdirsyncer = {
|
||||
enable = true;
|
||||
collections = ["from a" "from b"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
accounts.contact = {
|
||||
basePath = "Contacts";
|
||||
accounts = {
|
||||
FastMail = {
|
||||
khard.enable = true;
|
||||
remote = {
|
||||
passwordCommand = ["pass" "show" "email/fastmail"];
|
||||
type = "carddav";
|
||||
url = "https://carddav.fastmail.com/dav/";
|
||||
userName = "dustinswan@fastmail.com";
|
||||
};
|
||||
vdirsyncer = {
|
||||
enable = true;
|
||||
collections = ["from a" "from b"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue