From 67509d08014f80371f022cc2e4608e6a20c27cc9 Mon Sep 17 00:00:00 2001 From: chayleaf Date: Sat, 12 Aug 2023 17:40:51 +0700 Subject: [PATCH] system/common: misc nix-related changes --- system/modules/common.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/modules/common.nix b/system/modules/common.nix index 967279b..4d6afd8 100644 --- a/system/modules/common.nix +++ b/system/modules/common.nix @@ -38,7 +38,8 @@ in { cfg = config.common; in { nix = { - channel.enable = false; + # nix.channel.enable is needed for NIX_PATH to work for some reason + # channel.enable = false; settings = { allowed-users = [ cfg.mainUsername ]; auto-optimise-store = true; @@ -59,6 +60,8 @@ in { package = pkgs.nixForNixPlugins; }; systemd.services.nix-daemon.serviceConfig.LimitSTACKSoft = "infinity"; + nix.daemonCPUSchedPolicy = lib.mkDefault "idle"; + nix.daemonIOSchedClass = lib.mkDefault "idle"; boot.kernelParams = lib.optionals (cfg.resolution != null) [ "consoleblank=60" ] ++ (lib.optionals (cfg.resolution == "1920x1080") [