Skip to content

Commit ddef151

Browse files
committed
feat: enable logind power/lid config for hamster (do-bbj)
Port logind extraConfig to services.logind.settings.Login with HandlePowerKey=hibernate, HandleLidSwitch=suspend-then-hibernate, HandleLidSwitchExternalPower=ignore. Remove TODO comment.
1 parent 57f479b commit ddef151

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

machines/hamster/default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
};
3434
};
3535

36-
# services.logind.extraConfig = ''
37-
# HandlePowerKey=hibernate
38-
# HandleLidSwitch=suspend-then-hibernate
39-
# HandleLidSwitchExternalPower=ignore
40-
# ''; # TODO: port
36+
services.logind.settings.Login = {
37+
HandlePowerKey = "hibernate";
38+
HandleLidSwitch = "suspend-then-hibernate";
39+
HandleLidSwitchExternalPower = "ignore";
40+
};
4141

4242
systemd.sleep.extraConfig = ''
4343
HibernateDelaySec=30m

0 commit comments

Comments
 (0)