You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.9 KiB
Nix
65 lines
1.9 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
home.homeDirectory = "/Users/dustinswan";
|
|
|
|
home.packages = with pkgs; [
|
|
pinentry_mac
|
|
terminal-notifier
|
|
];
|
|
|
|
programs.ghostty.package = pkgs.ghostty-bin;
|
|
programs.ghostty.settings.font-size = 16;
|
|
|
|
home.file.gpg-agent = {
|
|
target = ".gnupg/gpg-agent.conf";
|
|
text = ''
|
|
pinentry-program ${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac
|
|
default-cache-ttl 34560000
|
|
max-cache-ttl 34560000
|
|
'';
|
|
};
|
|
|
|
services.imapnotify.enable = true;
|
|
|
|
# Add PATH to imapnotify service so it can find pass
|
|
launchd.agents.imapnotify-FastMail.config.EnvironmentVariables = {
|
|
PATH = "${pkgs.pass}/bin:${pkgs.gnupg}/bin:/usr/bin:/bin";
|
|
};
|
|
|
|
launchd.agents.mbsync = {
|
|
enable = true;
|
|
config = {
|
|
ProgramArguments = [ "${pkgs.isync}/bin/mbsync" "-a" ];
|
|
StartInterval = 900; # every 15 minutes
|
|
StandardOutPath = "/tmp/mbsync.log";
|
|
StandardErrorPath = "/tmp/mbsync.err";
|
|
EnvironmentVariables = {
|
|
PATH = "${pkgs.pass}/bin:${pkgs.gnupg}/bin:/usr/bin:/bin";
|
|
};
|
|
};
|
|
};
|
|
|
|
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";
|
|
EnvironmentVariables = {
|
|
PATH = "${pkgs.pass}/bin:${pkgs.gnupg}/bin:/usr/bin:/bin";
|
|
};
|
|
};
|
|
};
|
|
|
|
# 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"
|
|
fenv source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
|
source /nix/var/nix/profiles/default/etc/profile.d/nix.fish
|
|
'';
|
|
|
|
imports = [ ./home-cli.nix ./home-gui.nix ./home-mail.nix ];
|
|
}
|