fixup! fixup! fixup! WIP: hyper: Init

hyper
Simon Bruder 2024-03-19 17:10:34 +01:00
parent 45b9cd304d
commit 7cb1698467
Signed by: simon
GPG Key ID: 347FF8699CDA0776
1 changed files with 20 additions and 0 deletions

View File

@ -46,6 +46,26 @@
};
};
# https://www.reddit.com/r/gigabyte/comments/p5ewjn/b550i_pro_ax_f13_bios_sleep_issue_on_linux/
systemd.services.suspend-fix = {
wantedBy = [ "multi-user.target" ];
description = "Fix suspend";
script = ''
if grep -q "GPP0 .* \*enabled" /proc/acpi/wakeup; then
echo GPP0 > /proc/acpi/wakeup
echo "Disabled wakeup for GPP0"
else
echo "Wakeup for GPP0 already disabled"
fi
'';
serviceConfig = {
Type = "oneshot";
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/53f4e762-39fa-41a6-8b78-4999d38e6e88";