Skip to content
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

Cannot unlock with Swaylock on NixOS #2727

Closed
cloudlena opened this issue Jul 16, 2023 · 2 comments
Closed

Cannot unlock with Swaylock on NixOS #2727

cloudlena opened this issue Jul 16, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@cloudlena
Copy link

cloudlena commented Jul 16, 2023

Running Hyprland on NixOS, I have a setup for Swaylock to lock the screen after a while. When it gets locked however, I cannot log in anymore. It just keeps telling me that the password is wrong. The exact same setup works using Sway.

Am I doing something wrong or is that a bug in how the NixOS setup is connected to PAM? Might be connected to swaywm/swaylock#290.

Tagging @fufexan because it may be connected to Nix.

@cloudlena cloudlena added the bug Something isn't working label Jul 16, 2023
@donovanglover
Copy link

You need to add security.pam.services.swaylock = { }; to your system config.

See: NixOS/nixpkgs#143365

@cloudlena cloudlena changed the title Cannot unlock with Swaylock Cannot unlock with Swaylock on NixOS Jul 16, 2023
@cloudlena
Copy link
Author

Indeed, that fixed it. Many thanks, @donovanglover!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants