<ThatGuestAgain>
Hi, I'd like to use waylock. Swaylock works perfectly for me, waylock unfortunately does not accept my password. All I can do is kill river from tty, since (as the waylock manpage says) killing waylock alone is not enough. Any ideas? (NixOS unstable, very barebones config)
<LarstiQ>
ThatGuestAgain: I can confirm with `nix-shell -p waylock`. It logs `error: PAM authentication failed: Authentication failure
<ThatGuestAgain>
Ah, thanks for that info. With river, the shell I started it from died too and I'm hesitant to risk my entire session again (cause maybe there is an obvious answer). Quickly looking on 'pam' (never encountered it): That is a *lot*. I have no idea why it would accept swaylock but not waylock, I have nothing configured with it.
<LarstiQ>
ThatGuestAgain: I'd assume it's supposed to work without any additional pam customization
<ThatGuestAgain>
I mean, swaylock does, so I thought it should.
<ThatGuestAgain>
Oh, I might have figured it out. I'll close chat, rebuild, and lock. Wish me luck ;)
ThatGuestAgain has quit [Quit: Client closed]
<LarstiQ>
I'd wish ThatGuestAgain luck but after 6 minutes perhaps that did not work out
ThatGuestAgain has joined #river
<ThatGuestAgain>
I added that oneline file, still won't work :( In here by phone now, that may take several tries...
<ThatGuestAgain>
Huh, the error ends not with failure, but "permission denied". I'm confused. Yes the password is right, I've tried often enough :D
tiosgz has joined #river
<tiosgz>
ThatGuestAgain: both swaylock and waylock need a file in /etc/pam.d -- it should be installed with waylock normally, but here some nix weirdness may be breaking it
<tiosgz>
anyway, just joined and going out. hope you can figure it out
tiosgz has quit [Client Quit]
<adamcstephens>
ThatGuestAgain: do you have this in your nixos config? security.pam.services.waylock = { };
<adamcstephens>
if not, you do need it 😉
haliucinas has quit [Quit: .]
<ThatGuestAgain>
Oh... I was trying to figure out how to put the proper things into etc via environment.etc.path... Anything required inside {} adamcstephens?
haliucinas has joined #river
<adamcstephens>
no
<adamcstephens>
i think i may see why waylock doesn't work and swaylock does, out of the box, but you can work around it with that line above.
<adamcstephens>
nixos doesn't have a `system-auth` pam service
<ThatGuestAgain>
Thank you so much, got it working!
Axenntio has quit [Remote host closed the connection]
<ThatGuestAgain>
Yeah that file was what I added to etc...
<adamcstephens>
swaylock uses `login` which does exist, which is why it works. we'll have to patch the waylock file on install. i'll add it to my todos.