From f2de1bfe08b19f707fcfbd71345dc85bf4dd91c9 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Mon, 29 Jul 2019 03:50:11 +0200 Subject: [PATCH] Fix system-maintenance unit --- system/server.nix | 1 + 1 file changed, 1 insertion(+) 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";