Fix borked email file management
This commit is contained in:
parent
39e7a3e8c8
commit
16ee59549e
|
@ -24,6 +24,17 @@ with lib; {
|
||||||
};
|
};
|
||||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||||
};
|
};
|
||||||
|
# Setup files we need for email to work
|
||||||
|
home.file = {
|
||||||
|
".local/nathan-home/proton.pem" = {
|
||||||
|
source =
|
||||||
|
../../../certificates/protonmail-${nixosConfig.networking.hostName}.pem;
|
||||||
|
};
|
||||||
|
".local/nathan-home/sync-mu4e.sh" = {
|
||||||
|
source = ../../../scripts/update-mu4e.sh;
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
# Setup accounts
|
# Setup accounts
|
||||||
accounts.email = {
|
accounts.email = {
|
||||||
maildirBasePath = ".mail";
|
maildirBasePath = ".mail";
|
||||||
|
@ -46,7 +57,7 @@ with lib; {
|
||||||
tls = {
|
tls = {
|
||||||
useStartTls = true;
|
useStartTls = true;
|
||||||
certificatesFile =
|
certificatesFile =
|
||||||
../../../certificates/protonmail-${nixosConfig.networking.hostName}.pem;
|
"${config.home.homeDirectory}/.local/nathan-home/proton.pem";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
smtp = {
|
smtp = {
|
||||||
|
@ -55,7 +66,7 @@ with lib; {
|
||||||
tls = {
|
tls = {
|
||||||
useStartTls = true;
|
useStartTls = true;
|
||||||
certificatesFile =
|
certificatesFile =
|
||||||
../../../certificates/protonmail-${nixosConfig.networking.hostName}.pem;
|
"${config.home.homeDirectory}/.local/nathan-home/proton.pem";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mbsync = {
|
mbsync = {
|
||||||
|
@ -77,7 +88,7 @@ with lib; {
|
||||||
# Index manually with mu if we don't have emacs setup, but if we have the emacs service setup,
|
# Index manually with mu if we don't have emacs setup, but if we have the emacs service setup,
|
||||||
# run through emacsclient, as it will have the lock
|
# run through emacsclient, as it will have the lock
|
||||||
postExec = if config.nathan.programs.emacs.service then
|
postExec = if config.nathan.programs.emacs.service then
|
||||||
"${../../../scripts/update-mu4e.sh}"
|
"${config.home.homeDirectory}/.local/nathan-home/sync-mu4e.sh"
|
||||||
else
|
else
|
||||||
"${
|
"${
|
||||||
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.mu
|
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.mu
|
||||||
|
|
Loading…
Reference in New Issue