From 33aaa9ec5bafc20e3a2cea0ed7534412b8769dce Mon Sep 17 00:00:00 2001 From: RootHost-Stormwind Date: Sun, 1 Nov 2026 18:15:57 +0100 Subject: [PATCH] fix: nixPath points nixos-config at master.nix so auto-upgrade works --- automatic-upgrades.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/automatic-upgrades.nix b/automatic-upgrades.nix index 1a3be01..a226886 100644 --- a/automatic-upgrades.nix +++ b/automatic-upgrades.nix @@ -5,6 +5,14 @@ nix.gc.automatic = true; nix.gc.dates = "03:00"; # run GC at 03:00 daily + # This host has no configuration.nix: point at master.nix, + # otherwise nixos-upgrade.service (and plain nixos-rebuild) cannot find the config. + nix.nixPath = [ + "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" + "nixos-config=/etc/nixos/master.nix" + "/nix/var/nix/profiles/per-user/root/channels" + ]; + # Enable automatic system upgrades system.autoUpgrade = { enable = true; # turn on unattended upgrades @@ -14,4 +22,3 @@ }; } -