New power & no bamboo & sh3d
This commit is contained in:
parent
a2ef475040
commit
49469b4962
@ -14,7 +14,9 @@
|
||||
pavucontrol
|
||||
keepassxc
|
||||
nextcloud-client
|
||||
|
||||
gramps
|
||||
sweethome3d.application
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -7,8 +7,24 @@
|
||||
STOP_CHARGE_THRESH_BAT0 = 90;
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
MEM_SLEEP_ON_BAT = "deep";
|
||||
};
|
||||
};
|
||||
|
||||
powerManagement.enable = true;
|
||||
# suspend to RAM (deep) rather than `s2idle`
|
||||
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
||||
# suspend-then-hibernate
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=30m
|
||||
SuspendState=mem
|
||||
'';
|
||||
|
||||
services.logind.lidSwitch = "suspend-then-hibernate";
|
||||
# Hibernate on power button pressed
|
||||
services.logind.powerKey = "hibernate";
|
||||
services.logind.powerKeyLongPress = "poweroff";
|
||||
|
||||
|
||||
systemd.user.services.battery_monitor = {
|
||||
wants = [ "display-manager.service" ];
|
||||
|
@ -4,7 +4,7 @@
|
||||
openttd-jgrpp = import ./openttd-jgrpp { inherit final prev; };
|
||||
yarn-berry = import ./yarn-berry { inherit final prev; };
|
||||
eww = import ./eww { inherit final prev; };
|
||||
bambu-studio = import ./bambu-studio { inherit final prev; };
|
||||
bambu-studio-fix = import ./bambu-studio { inherit final prev; };
|
||||
wine = final.unstable.wineWow64Packages.unstableFull;
|
||||
unstable = import inputs.nixUnstable {
|
||||
system = final.system;
|
||||
|
Loading…
x
Reference in New Issue
Block a user