framework: Enable hibernation and lock before doing it
This commit is contained in:
parent
cec9dd4d85
commit
2888c0a300
|
@ -397,6 +397,10 @@ in
|
||||||
# Lock after 15 minutes of idle
|
# Lock after 15 minutes of idle
|
||||||
{ timeout = 15 * 60; command = cfg.lockCmd; }
|
{ timeout = 15 * 60; command = cfg.lockCmd; }
|
||||||
];
|
];
|
||||||
|
events = [
|
||||||
|
{ event = "lock"; command = cfg.lockCmd; }
|
||||||
|
{ event = "before-sleep"; command = cfg.lockCmd; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
config.programs.waybar =
|
config.programs.waybar =
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
# Power Management
|
# Power Management
|
||||||
services.upower = {
|
services.upower = {
|
||||||
enable = true;
|
enable = true;
|
||||||
criticalPowerAction = "PowerOff";
|
criticalPowerAction = "Hibernate";
|
||||||
|
|
||||||
usePercentageForPolicy = true;
|
usePercentageForPolicy = true;
|
||||||
percentageCritical = 3;
|
percentageCritical = 3;
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
# See https://community.frame.work/t/tracking-graphical-corruption-in-fedora-39-amd-3-03-bios/39073/143
|
# See https://community.frame.work/t/tracking-graphical-corruption-in-fedora-39-amd-3-03-bios/39073/143
|
||||||
"amdgpu.sg_display=0"
|
"amdgpu.sg_display=0"
|
||||||
|
# Hibernation
|
||||||
|
"resume=UUID=fa8aaf51-b99f-4fb4-9230-8c0957d8af3f"
|
||||||
|
"resume_offset=5776640" # btrfs inspect-internal map-swapfile -r /var/swapfile
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
|
|
Loading…
Reference in a new issue