about summary refs log tree commit diff
path: root/modules/nixos/common
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-12-10 13:13:40 +0300
committerAzat Bahawi <azat@bahawi.net>2023-12-10 13:13:40 +0300
commit2d042c19294619c8ac673db4e1007824cf0811f2 (patch)
tree24382b073d9a75522c9de2e4a96768af2916daae /modules/nixos/common
parent2023-12-03 (diff)
2023-12-10
Diffstat (limited to 'modules/nixos/common')
-rw-r--r--modules/nixos/common/nix.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nixos/common/nix.nix b/modules/nixos/common/nix.nix
index e21cc5c..2976cfc 100644
--- a/modules/nixos/common/nix.nix
+++ b/modules/nixos/common/nix.nix
@@ -2,7 +2,6 @@
   config,
   inputs,
   lib,
-  this,
   ...
 }:
 with lib; let
@@ -15,9 +14,10 @@ in {
   };
 
   config = {
-    nix = mkIf this.isHeadless {
+    nix = {
       daemonCPUSchedPolicy = "idle";
       daemonIOSchedClass = "idle";
+      daemonIOSchedPriority = 7;
     };
 
     nixpkgs.config.allowUnfreePredicate = p: elem (getName p) cfg.allowedUnfreePackages;

Consider giving Nix/NixOS a try! <3