feat: auto updater (every 15 minutes)

This commit is contained in:
2026-03-22 12:43:37 +01:00
parent 7a663e304b
commit ab877f3bed

View File

@@ -142,4 +142,22 @@ in
security.sudo.wheelNeedsPassword = true;
nixpkgs.config.allowUnfree = true;
# timers and stuff
systemd.timers.lab-updater = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "15m";
OnUnitActiveSec = "15m";
Unit = "lab-updater.service";
};
};
systemd.services.lab-updater = {
description = "Automatic lab updates using update.sh";
path = with pkgs; [ git nix coreutils kdePackages.kdialog libnotify config.system.build.nixos-rebuild ];
serviceConfig = {
Type = "oneshot";
ExecStart = "/etc/nixos/update.sh";
};
};
}