diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-11-23 04:20:34 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-11-23 04:20:34 +0300 |
commit | 67b82386d8ad8ae3eea5083bd22809f6192d92a8 (patch) | |
tree | 41829a0b3e05a9dbb4b0189e34a7b53e401f489e /modules/nixos/common/nix.nix | |
parent | 2023-11-19 (diff) |
2023-11-23
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/common/nix.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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; |