From ab877f3bed726182ddee8bc8a860ce645e554626 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 22 Mar 2026 12:43:37 +0100 Subject: [PATCH] feat: auto updater (every 15 minutes) --- configuration.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configuration.nix b/configuration.nix index 2e782e0..bd294bb 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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"; + }; + }; }