This commit is contained in:
2026-02-14 18:23:59 +00:00
parent b99ccfc588
commit 5a8bd09491
11 changed files with 504 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
includes = [
modules.nix
modules.tuigreet
<modules/common/laptop-power-management>
];
nixos =
{ pkgs, config, ... }:
@@ -116,6 +117,27 @@
users.mutableUsers = false;
services.system76-scheduler.enable = true;
powerManagement = {
enable = true;
# powertop.enable = true;
};
boot.kernelParams = [
# "mem_sleep_default=deep"
# "i915.fastboot=1"
"ahci.mobile_lpm_policy=1"
];
services.logind.settings.Login = {
HandleLidSwitch = "suspend";
HandleLidSwitchExternalPower = "suspend";
HandleLidSwitchDocked = "ignore";
};
systemd.sleep.extraConfig = ''
HibernateDelaySec=30min
SuspendEstimationSec=120
'';
# programs.firefox.enable = true;
# List packages installed in system profile.