From 28710738a3ca7c9a16d63b89c904588d030edf01 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Thu, 3 Jan 2019 19:29:49 +0100 Subject: [PATCH] checks: fix gc condition Don't fail if the user is configured properly. --- modules/system/checks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/checks.nix b/modules/system/checks.nix index af6cb6f7..380e7413 100644 --- a/modules/system/checks.nix +++ b/modules/system/checks.nix @@ -171,7 +171,7 @@ in runLink (mkIf config.services.nix-daemon.enable buildUsers) nixStore - (mkIf config.nix.gc.automatic nixGarbageCollector) + (mkIf (config.nix.gc.automatic && config.nix.user != null) nixGarbageCollector) nixChannels nixInstaller (mkIf cfg.verifyNixPath nixPath)