-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swaylock isn't added to /etc/pam.d
by default
#143365
Comments
@primeos, you seem to be a maintainer of both that module and swaylock. |
Unfortunately I see no good way to fix this. We could add a Swaylock module but I don't think that makes sense as users could just set Maybe a note in the description of the Swaylock package would help? |
/etd/pam.d
by default/etc/pam.d
by default
Is there any reason why From the perspective of someone who never worked with another package that needed But yeah, a note in the description would be more than welcome than the status quo. |
I forgot about the second line for |
as an alternative for these very simple modules (which slow down eval) we could add an section to the nixos manual |
I'm honestly fine with any of the proposed solutions, granted it reduces confusion for other users in the future. I honestly feel like I already accomplished half of what I wanted to do by simply opening this issue for others to search. However, I do find it worth noting that as Wayland gains more traction, more people would probably come across this issue when they try niche window managers or lockers. And having a module for every window manager/screen locker does indeed sound like a pain. |
Modules have the advantage that they isolate the implementation, e.g if the pam thing will work differently in the future we could just change it there. Still probably not worth in in this case and fixing the module evaluation slowdown is probably not happening soon. |
I marked this as stale due to inactivity. → More info |
Tried the set the PAM file, (as it was created by
and it works (without sway.enable); in my case under hyprland. I'm always grateful for better suggestions. |
tysm mate this helped. |
Issue description
swaylock isn't added to
/etc/pam.d
by default, causing the issue described in swaywm/sway#3631, at least when using a window manager different from Sway.Steps to reproduce
Use a WM different from sway (such as
river
) and attempt using swaylock.Temporary fix
It works as expected on sway because of this line:
nixpkgs/nixos/modules/programs/sway.nix
Line 135 in 2ddc335
As such, adding the line above should circumvent the issue.
Technical details
The text was updated successfully, but these errors were encountered: