diff --git a/hosts/widar/default.nix b/hosts/widar/default.nix index a8cbca1..6a471ee 100644 --- a/hosts/widar/default.nix +++ b/hosts/widar/default.nix @@ -33,6 +33,22 @@ variant = ""; }; + services.logind = { + lidSwitch = "hibernate"; + lidSwitchExternalPower = "lock"; + }; + + services.thermald.enable = true; + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + }; + }; + services.openssh = { enable = true; openFirewall = true;