From 06773bdd5890befc215a60d069cee6272b4d49a3 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 5 Dec 2022 16:54:54 +0100 Subject: tv: use nix.settings --- tv/2configs/hw/x220.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tv/2configs/hw/x220.nix') diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix index 8c68cde..25e2eff 100644 --- a/tv/2configs/hw/x220.nix +++ b/tv/2configs/hw/x220.nix @@ -28,8 +28,8 @@ in } { - nix.buildCores = 2; - nix.maxJobs = 2; + nix.settings.cores = 2; + nix.settings.max-jobs = 2; } (if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then { nix.daemonCPUSchedPolicy = "batch"; -- cgit v1.2.3 From 99b30bf0b6a0510df91a06de747b09f9d7d763fe Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 7 Dec 2022 20:31:34 +0100 Subject: tv x220: disable power-profiles-daemon --- tv/2configs/hw/x220.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tv/2configs/hw/x220.nix') diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix index 25e2eff..c3ec7b4 100644 --- a/tv/2configs/hw/x220.nix +++ b/tv/2configs/hw/x220.nix @@ -61,6 +61,9 @@ in emulateWheel = true; }; + # Conflicts with TLP, but gets enabled by DEs. + services.power-profiles-daemon.enable = false; + services.tlp.enable = true; services.tlp.settings = { START_CHARGE_THRESH_BAT0 = 80; -- cgit v1.2.3 From c82942bb7b872765d109d5cc5fccec5f945f1200 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 9 Dec 2022 01:31:56 +0100 Subject: tv: normalize lib imports --- tv/2configs/hw/x220.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tv/2configs/hw/x220.nix') diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix index c3ec7b4..ee3c7dc 100644 --- a/tv/2configs/hw/x220.nix +++ b/tv/2configs/hw/x220.nix @@ -1,7 +1,5 @@ -{ config, pkgs, ... }: let - lib = import ; -in -{ +with import ./lib; +{ config, pkgs, ... }: { imports = [ ../smartd.nix { -- cgit v1.2.3