system/laptop: split logind and auto-cpufreq config

This commit is contained in:
wo2wz 2025-12-20 23:20:26 +00:00
parent 4deded9963
commit b6b98a126e
4 changed files with 20 additions and 9 deletions

View file

@ -1,12 +1,6 @@
{ config, ... }:
{
services.logind.settings.Login = {
HandleLidSwitch = "suspend";
HandleLidSwitchExternalPower = "lock";
HandleLidSwitchDocked = "ignore";
};
services = {
tlp.enable = false;
power-profiles-daemon.enable = false;
@ -33,4 +27,4 @@
};
};
};
}
}

View file

@ -0,0 +1,8 @@
{ config, ... }:
{
imports = [
./auto-cpufreq.nix
./logind.nix
];
}

View file

@ -0,0 +1,9 @@
{ config, ... }:
{
services.logind.settings.Login = {
HandleLidSwitch = "suspend";
HandleLidSwitchExternalPower = "lock";
HandleLidSwitchDocked = "ignore";
};
}