summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-10-02 22:09:16 -0400
committerGrace Yoder <grace_yoder@outlook.com>2026-10-02 22:09:16 -0400
commit1f58bc3f3c9947c988567c8c16a853ff918f3e98 (patch)
tree7c55d1b11eaab5db8990c7f34c334b449e96f08a
parent19c99a2f77311e40a7dfd5e9d98e13463deca63c (diff)
remove autoupdateHEADmain
-rw-r--r--hosts/hamano.nix1
-rw-r--r--modules/auto-update.nix26
2 files changed, 0 insertions, 27 deletions
diff --git a/hosts/hamano.nix b/hosts/hamano.nix
index a7ff346..2056d70 100644
--- a/hosts/hamano.nix
+++ b/hosts/hamano.nix
@@ -8,7 +8,6 @@ in
../hardware-configuration.nix
../modules/dns.nix
../modules/caddy.nix
- ../modules/auto-update.nix
../modules/tailscale.nix
../modules/users.nix
];
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"'';
- };
-}