summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2019-01-04 00:40:10 +0100
committerDaiderd Jordan <daiderd@gmail.com>2019-01-04 00:40:10 +0100
commit458d09882eda36591da67521dce80b1874b776d8 (patch)
treebfb2b48ddae938a8d515f9e89dadc154bf116415 /modules/system
parentaedd304983ddf3765434aa2dcc0089d47a524ccc (diff)
checks: actually fix gc condition
Introduced in 28710738a3ca7c9a16d63b89c904588d030edf01, the check should _only_ run if the user is not configured not the other way around.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/checks.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/checks.nix b/modules/system/checks.nix
index a2385ec..41236ec 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 && config.nix.gc.user != null) nixGarbageCollector)
+ (mkIf (config.nix.gc.automatic && config.nix.gc.user == null) nixGarbageCollector)
nixChannels
nixInstaller
(mkIf cfg.verifyNixPath nixPath)