2 Commits
2 changed files with 3 additions and 4 deletions
@@ -47,6 +47,7 @@ in
host = cfg.host; host = cfg.host;
passwordeval = "${pkgs.age}/bin/age --decrypt --identity ${config.identityFile} ${pkgs.writeText "mailpass-system.age" (builtins.readFile cfg.passwordFile)}"; passwordeval = "${pkgs.age}/bin/age --decrypt --identity ${config.identityFile} ${pkgs.writeText "mailpass-system.age" (builtins.readFile cfg.passwordFile)}";
user = cfg.user; user = cfg.user;
from = cfg.user;
from_full_name = "${config.networking.hostName} System"; from_full_name = "${config.networking.hostName} System";
port = 465; port = 465;
tls = true; tls = true;
@@ -6,7 +6,6 @@
}: }:
let let
inherit (config.nmasur.settings) username;
cfg = config.nmasur.presets.services.nix-autoupgrade; cfg = config.nmasur.presets.services.nix-autoupgrade;
in in
@@ -27,7 +26,7 @@ in
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;
dates = "09:33"; dates = "09:33";
flake = "git+${cfg.repo}"; flake = "git+ssh://${cfg.repo}";
randomizedDelaySec = "25min"; randomizedDelaySec = "25min";
operation = "switch"; operation = "switch";
allowReboot = true; allowReboot = true;
@@ -55,8 +54,7 @@ in
systemctl status $SERVICE_ID >> $TEMPFILE systemctl status $SERVICE_ID >> $TEMPFILE
set -e set -e
${lib.getExe pkgs.msmtp} \ ${lib.getExe pkgs.msmtp} \
--file=${config.home-manager.users.${username}.xdg.configHome}/msmtp/config \ --account=default \
--account=system \
${address} < $TEMPFILE ${address} < $TEMPFILE
''; '';
}; };