From 1b97ccf6be224104f2b196092f205571399e4e15 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 10 Aug 2024 23:57:31 +0200 Subject: [PATCH] no thermald on containers --- base.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base.nix b/base.nix index 550ea00..a797e24 100644 --- a/base.nix +++ b/base.nix @@ -67,7 +67,10 @@ nix.settings.min-free = 3 * 1024 * 1024 * 1024; nix.settings.max-free = 20 * 1024 * 1024 * 1024; - services.thermald.enable = lib.mkIf (config.nixpkgs.system == "x86_64-linux") true; + services.thermald.enable = lib.mkIf (lib.all (x: x) [ + (config.nixpkgs.system == "x86_64-linux") + (!config.boot.isContainer or false) + ]) true; # System fonts # Nice to have when X-forwading on headless machines