New power & no bamboo & sh3d
This commit is contained in:
parent
a2ef475040
commit
49469b4962
@ -14,7 +14,9 @@
|
|||||||
pavucontrol
|
pavucontrol
|
||||||
keepassxc
|
keepassxc
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
|
|
||||||
gramps
|
gramps
|
||||||
|
sweethome3d.application
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7,9 +7,25 @@
|
|||||||
STOP_CHARGE_THRESH_BAT0 = 90;
|
STOP_CHARGE_THRESH_BAT0 = 90;
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
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 = {
|
systemd.user.services.battery_monitor = {
|
||||||
wants = [ "display-manager.service" ];
|
wants = [ "display-manager.service" ];
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
openttd-jgrpp = import ./openttd-jgrpp { inherit final prev; };
|
openttd-jgrpp = import ./openttd-jgrpp { inherit final prev; };
|
||||||
yarn-berry = import ./yarn-berry { inherit final prev; };
|
yarn-berry = import ./yarn-berry { inherit final prev; };
|
||||||
eww = import ./eww { 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;
|
wine = final.unstable.wineWow64Packages.unstableFull;
|
||||||
unstable = import inputs.nixUnstable {
|
unstable = import inputs.nixUnstable {
|
||||||
system = final.system;
|
system = final.system;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user