This commit is contained in:
batteredbunny 2024-03-30 20:39:30 +02:00
parent 1818cb6c5b
commit f311801075

View file

@ -44,7 +44,7 @@ in {
lib.mkIf cfg.updateFlake
(lib.getExe updateScript);
nios-upgrade-failure = lib.mkIf cfg.failureNotification.enable {
nixos-upgrade-failure = lib.mkIf cfg.failureNotification.enable {
path = with pkgs; ["/run/wrappers" "/run/current-system/sw" curl];
script = ''
journalctl _SYSTEMD_INVOCATION_ID=`systemctl show --value -p InvocationID nixos-upgrade.service` > /tmp/upgrade-failure.txt