From 9f8817b07d472fb5a2fada813cd2cdfa4de4ada2 Mon Sep 17 00:00:00 2001 From: Sebastian Moser Date: Mon, 29 Apr 2024 23:30:27 +0200 Subject: [PATCH] laptop less lagy during builds --- hosts/main.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/main.nix b/hosts/main.nix index e72fce1..bd8cb4e 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -44,6 +44,9 @@ win-virtio ]; + nix.daemonCPUSchedPolicy = "idle"; + nix.daemonIONiceLevel = 7; + systemd.services.nix-daemon.serviceConfig.Nice = 9; # enable ntp #services.ntp.enable = true;