From 67b82386d8ad8ae3eea5083bd22809f6192d92a8 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 23 Nov 2023 04:20:34 +0300 Subject: 2023-11-23 --- modules/nixos/common/nix.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/nixos/common') diff --git a/modules/nixos/common/nix.nix b/modules/nixos/common/nix.nix index 0caf265..e21cc5c 100644 --- a/modules/nixos/common/nix.nix +++ b/modules/nixos/common/nix.nix @@ -2,6 +2,7 @@ config, inputs, lib, + this, ... }: with lib; let @@ -14,7 +15,10 @@ in { }; config = { - nix.settings.trusted-users = ["@wheel"]; + nix = mkIf this.isHeadless { + daemonCPUSchedPolicy = "idle"; + daemonIOSchedClass = "idle"; + }; nixpkgs.config.allowUnfreePredicate = p: elem (getName p) cfg.allowedUnfreePackages; -- cgit 1.4.1