mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 17:29:30 +08:00
modules.system.systemd: disable lid switch causing suspend
This commit is contained in:
@@ -3,7 +3,11 @@ inputs:
|
||||
config =
|
||||
{
|
||||
# only preserve the last 7 days of logs
|
||||
services.journald.extraConfig = "MaxRetentionSec=7d";
|
||||
services =
|
||||
{
|
||||
journald.extraConfig = "MaxRetentionSec=7d";
|
||||
logind.settings.Login.HandleLidSwitch = "ignore";
|
||||
};
|
||||
systemd =
|
||||
{
|
||||
settings.Manager =
|
||||
|
||||
Reference in New Issue
Block a user