From 1f58bc3f3c9947c988567c8c16a853ff918f3e98 Mon Sep 17 00:00:00 2001 From: Grace Yoder Date: Fri, 2 Oct 2026 22:09:16 -0400 Subject: remove autoupdate --- modules/auto-update.nix | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 modules/auto-update.nix (limited to 'modules') diff --git a/modules/auto-update.nix b/modules/auto-update.nix deleted file mode 100644 index b370390..0000000 --- a/modules/auto-update.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ pkgs, ... }: - -{ - system.autoUpgrade = { - enable = true; - dates = "minutely"; - allowReboot = true; - upgrade = false; - }; - - systemd.services.nixos-upgrade = { - path = [ pkgs.git ]; - serviceConfig = { - WorkingDirectory = "/etc/nixos"; - StateDirectory = "nixos-repo-update"; - ExecCondition = pkgs.writeShellScript "check-nixos-repo" '' - set -euo pipefail - git fetch || exit 255 - test "$(cat "$STATE_DIRECTORY/applied" 2>/dev/null || true)" != "$(git rev-parse '@{upstream}')" - ''; - }; - - preStart = "git pull --ff-only"; - postStart = ''git rev-parse HEAD > "$STATE_DIRECTORY/applied"''; - }; -} -- cgit v1.3.1