no thermald on containers

This commit is contained in:
Peder Bergebakken Sundt 2024-08-10 23:57:31 +02:00
parent d17d8e4f7e
commit 1b97ccf6be
1 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,10 @@
nix.settings.min-free = 3 * 1024 * 1024 * 1024; nix.settings.min-free = 3 * 1024 * 1024 * 1024;
nix.settings.max-free = 20 * 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 # System fonts
# Nice to have when X-forwading on headless machines # Nice to have when X-forwading on headless machines