Move accounts file into separate directory

Started accounts/email.nix to prep separation for adding calendar and
contact expressions

Move maildir back to ~/.mail to be consistent with ~/.calendar and ~/.contact
This commit is contained in:
Evie Litherland-Smith 2023-09-25 13:42:13 +01:00
parent ffafc4a2b6
commit 2579ddbaa9
3 changed files with 8 additions and 4 deletions

View file

@ -0,0 +1,5 @@
{ ... }:
{
imports = [ ./email.nix ];
}

View file

@ -1,6 +1,7 @@
{ pkgs, hostName, ... }: { pkgs, hostName, ... }:
{ {
accounts.email.maildirBasePath = ".mail";
accounts.email.accounts = let realName = "Evelyn Litherland-Smith"; accounts.email.accounts = let realName = "Evelyn Litherland-Smith";
in { in {
proton = let proton = let
@ -58,7 +59,7 @@
mu.enable = true; mu.enable = true;
}; };
}; };
home.packages = with pkgs; [ protonmail-bridge vdirsyncer ]; home.packages = with pkgs; [ protonmail-bridge ];
programs = { programs = {
mbsync.enable = true; mbsync.enable = true;
msmtp.enable = true; msmtp.enable = true;
@ -69,6 +70,4 @@
enable = true; enable = true;
frequency = "*-*-* *:0/15:00"; frequency = "*-*-* *:0/15:00";
}; };
xdg.configFile."vdirsyncer/config".text =
import ./config/vdirsyncer.nix { inherit pkgs; };
} }

View file

@ -2,7 +2,6 @@
{ {
imports = [ imports = [
./accounts.nix
./alacritty.nix ./alacritty.nix
./firefox.nix ./firefox.nix
./fzf.nix ./fzf.nix
@ -15,6 +14,7 @@
./zathura.nix ./zathura.nix
./hyprland/default.nix ./hyprland/default.nix
./emacs/default.nix ./emacs/default.nix
./accounts/default.nix
]; ];
home.packages = with pkgs; [ dig silver-searcher gnumake rink ]; home.packages = with pkgs; [ dig silver-searcher gnumake rink ];
programs = { programs = {