summaryrefslogtreecommitdiffstats
path: root/tv/2configs/hw
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-12-10 23:43:44 +0100
committertv <tv@krebsco.de>2021-12-10 23:45:58 +0100
commit1c778a5443554a55dd526d67f79b265168953da2 (patch)
treec3d9183ee4b7c6c58eb9b9869412443efc1c0833 /tv/2configs/hw
parent30bdb1e7e535f8257f06a929012e58f421f709b0 (diff)
tv AO753 nix.daemon*: admit NixOS 21.11
Diffstat (limited to 'tv/2configs/hw')
-rw-r--r--tv/2configs/hw/AO753.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/tv/2configs/hw/AO753.nix b/tv/2configs/hw/AO753.nix
index 469f5c6f8..c9afe9a0f 100644
--- a/tv/2configs/hw/AO753.nix
+++ b/tv/2configs/hw/AO753.nix
@@ -5,6 +5,18 @@ with import <stockholm/lib>;
{
imports = [
../smartd.nix
+
+ {
+ nix.buildCores = 2;
+ nix.maxJobs = 2;
+ }
+ (if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then {
+ nix.daemonCPUSchedPolicy = "batch";
+ nix.daemonIOSchedPriority = 1;
+ } else {
+ nix.daemonIONiceLevel = 1;
+ nix.daemonNiceLevel = 1;
+ })
];
boot.loader.grub = {
@@ -29,13 +41,6 @@ with import <stockholm/lib>;
config.boot.kernelPackages.broadcom_sta
];
- nix = {
- buildCores = 2;
- maxJobs = 2;
- daemonIONiceLevel = 1;
- daemonNiceLevel = 1;
- };
-
services.logind.extraConfig = ''
HandleHibernateKey=ignore
HandleLidSwitch=ignore