fix(desktop): add enable option

This commit is contained in:
2026-05-22 10:58:21 +02:00
parent 6c9bbc27a0
commit e994e540c1
9 changed files with 143 additions and 36 deletions

View File

@@ -1,7 +1,13 @@
{ lib, config, ... }:
{
services.logind.settings.Login = {
HandleLidSwitch = "suspend";
IdleAction = "suspend";
IdleActionSec = 1800;
options.desktop.logind.enable = lib.mkEnableOption "logind desktop settings";
config = lib.mkIf config.desktop.logind.enable {
services.logind.settings.Login = {
HandleLidSwitch = "suspend";
IdleAction = "suspend";
IdleActionSec = 1800;
};
};
}