diff --git a/system/server.nix b/system/server.nix index 82826c97..0e5686af 100644 --- a/system/server.nix +++ b/system/server.nix @@ -6,6 +6,7 @@ imports = [ ./init_ssh.nix ]; config = { systemd.services."system-maintenance" = { startAt = "2:45"; + environment.NIX_PATH = "/etc/nix-path:nixos-config=/etc/nixos/configuration.nix"; serviceConfig = { Type = "oneshot"; ExecStart = "${(import ./update-lib.nix config.system.build.nixos-rebuild).system-maintenance}/bin/system-maintenance";