1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

checks: actually fix gc condition

Introduced in 28710738a3, the check should
_only_ run if the user is not configured not the other way around.
This commit is contained in:
Daiderd Jordan 2019-01-04 00:40:10 +01:00
parent aedd304983
commit 458d09882e
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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)