Hi,
When I close the lid of my laptop the monitor shuts off. I am using Plasma 6, nixos 24.05 and this is what I set up as option:
services.logind = {
extraConfig = ‘’
HandleLidSwitch=ignore
‘’;
};
services.upower = {
enable = true;
ignoreLid = true;
};
after I run “nixos-rebuild switch --flake .” and restart the system, the systemd file are still the same as before in “logind.conf”:
[Login]
KillUserProcesses=no
HandlePowerKey=poweroff
HandlePowerKeyLongPress=ignore
HandleRebootKey=reboot
HandleRebootKeyLongPress=poweroff
HandleSuspendKey=suspend
HandleSuspendKeyLongPress=hibernate
HandleHibernateKey=hibernate
HandleHibernateKeyLongPress=ignore
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=ignore
HandleLidSwitch=ignore
Any idea why?
Thanks