From 677b57cad7fa10b74b8b2f174d3ce9b228d58599 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 26 Jan 2024 16:49:02 +0800 Subject: [PATCH] nixos/profiles/desktop: make Nix more of a background process --- configs/nixos/ni/default.nix | 3 --- modules/nixos/profiles/desktop/hardware.nix | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configs/nixos/ni/default.nix b/configs/nixos/ni/default.nix index 9d8a3b50..4dd46545 100644 --- a/configs/nixos/ni/default.nix +++ b/configs/nixos/ni/default.nix @@ -62,8 +62,5 @@ experimental-features = [ "auto-allocate-uids" ]; }; - # My poor achy-breaky desktop can't take it. - nix.daemonCPUSchedPolicy = "idle"; - system.stateVersion = "24.05"; # Yes! I read the comment! } diff --git a/modules/nixos/profiles/desktop/hardware.nix b/modules/nixos/profiles/desktop/hardware.nix index b62fc940..f93e84ce 100644 --- a/modules/nixos/profiles/desktop/hardware.nix +++ b/modules/nixos/profiles/desktop/hardware.nix @@ -13,4 +13,8 @@ hardware.steam-hardware.enable = lib.mkDefault true; hardware.xone.enable = lib.mkDefault true; hardware.xpadneo.enable = lib.mkDefault true; + + # This is useful for not interrupting your desktop activity. Also most of my + # poor achy-breaky desktops can't take it. + nix.daemonCPUSchedPolicy = "idle"; }