Only set lidSwitch to hibernate if 'resumeDevice' is set

This commit is contained in:
Vili Sinervä 2024-06-06 21:41:15 +03:00
parent 0a48c6ecce
commit 3754cbb0c0
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -19,6 +19,6 @@
'';
};
logind.lidSwitch = "hibernate";
logind.lidSwitch = if config.boot.resumeDevice != "" then "hibernate" else "suspend";
};
}