From 9870ba8252164711d3917c2771684a5aa357a3ef Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Thu, 12 Jan 2023 23:18:58 +0100 Subject: [PATCH] core/nix: fix daemon priority --- machines/core/core.nix | 1 - machines/core/nix.nix | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/machines/core/core.nix b/machines/core/core.nix index 36712ac..90104f2 100644 --- a/machines/core/core.nix +++ b/machines/core/core.nix @@ -20,7 +20,6 @@ mosh multipath-tools #-> kpartx mtr - nix-index nmap nmon pciutils diff --git a/machines/core/nix.nix b/machines/core/nix.nix index b7825b7..b744b92 100644 --- a/machines/core/nix.nix +++ b/machines/core/nix.nix @@ -1,6 +1,9 @@ { config, lib, pkgs, inputs, ... }: { nix = { + daemonCPUSchedPolicy = "idle"; + daemonIOSchedClass = "idle"; + settings = { trusted-users = [ "root" @@ -32,10 +35,10 @@ ]; environment.systemPackages = with pkgs; [ + nix-index nix-prefetch nix-update nixpkgs-fmt - nixpkgs-lint nixpkgs-review ]; }