diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-10-02 22:09:16 -0400 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-10-02 22:09:16 -0400 |
| commit | 1f58bc3f3c9947c988567c8c16a853ff918f3e98 (patch) | |
| tree | 7c55d1b11eaab5db8990c7f34c334b449e96f08a /modules/auto-update.nix | |
| parent | 19c99a2f77311e40a7dfd5e9d98e13463deca63c (diff) | |
Diffstat (limited to 'modules/auto-update.nix')
| -rw-r--r-- | modules/auto-update.nix | 26 |
1 files changed, 0 insertions, 26 deletions
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"''; - }; -} |
