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