From d684bbf2028f066bbeb471bfe9c26ab182348eb6 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 16 May 2017 00:33:12 +0200 Subject: [PATCH] nix-daemon: switch process type to interactive Using interactive seems to have a significant impact on build times, hopefully this doesn't impact other UI programs to much while building packages. --- modules/services/nix-daemon.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/nix-daemon.nix b/modules/services/nix-daemon.nix index 7b42fc62..39735c0d 100644 --- a/modules/services/nix-daemon.nix +++ b/modules/services/nix-daemon.nix @@ -40,7 +40,7 @@ in launchd.daemons.nix-daemon = { command = "${config.nix.package}/bin/nix-daemon"; serviceConfig.KeepAlive = true; - serviceConfig.ProcessType = "Background"; + serviceConfig.ProcessType = "Interactive"; serviceConfig.LowPriorityIO = config.nix.daemonIONice; serviceConfig.Nice = config.nix.daemonNiceLevel; serviceConfig.SoftResourceLimits.NumberOfFiles = 4096;