Hello NixOS Community,
I’ve been facing persistent issues with auto-login and screen locking on my NixOS system running KDE Plasma. Despite various configuration attempts, including those related to xautolock
, logind.conf
, and xset
settings, the screen consistently returns to the lock screen a few minutes after auto-login.
Here are the key details and steps I’ve taken:
- System Configuration:
- Bootloader: systemd-boot
- Desktop Environment: KDE Plasma
- Auto-Login Enabled: Yes (via SDDM)
- User: fids (normal user with necessary groups)
My Attempts: environment.etc."logind.conf".text = '' [Login] AutomaticLoginEnable=yes AutomaticLogin=fids KillUserProcesses=no IdleAction=ignore '';
description = "Disable DPMS and Screensaver";
serviceConfig = {
ExecStart = "${pkgs.xorg.xset}/bin/xset s off -dpms";
Type = "oneshot";
RemainAfterExit = true;
};
wantedBy = [ "default.target" ];
};```
```environment.etc."X11/xorg.conf.d/99-no-dpms.conf".text = ''
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Section "ServerLayout"
Identifier "Layout0"
Option "DPMS" "false"
EndSection
'';
Auto-login works, but the screen locks after a few minutes of inactivity.
I’ve tried multiple configurations, but none have been successful in preventing the lock screen from appearing.
Any guidance or suggestions from the community would be greatly appreciated. Thank you in advance for your help!