-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
nixos/i3lock: i3lock program with u2fSupport option #205578
nixos/i3lock: i3lock program with u2fSupport option #205578
Conversation
49747f9
to
6eb85f6
Compare
Shouldn't this be |
There would be no need for you to use it as a program instead of package, which could be confusing, i3lock works just fine as a package when you don't want the u2fSupport. I feel like that could be confusing instead of being more documenting but that's just how I feel about it, but that's just me so if you think the other way would be better I can definitely change it. PS: |
Technically, programs like this already exist: gpg, etc. Of course, they are often correlated with setuid binaries stuff. But, I have no strong feeling on that to be honest, I would love to have other i3lock users weigh in here.
Adding a symlink to i3lock for the closure of each of this package? |
Thanks for the response! |
6eb85f6
to
6eca4d7
Compare
c967891
to
a824932
Compare
@RaitoBezarius What do you think about that? |
Result of 2 packages blacklisted:
6 packages built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes to do but sounds good
i3lock program with option to enable u2fAuth.
Added symlink `i3lock` to the output binary, In order to enable `programs.i3lock.u2fSupport` which relies on file with name `i3lock` inside out dir.
a824932
to
131619a
Compare
Should be all done now except for the |
Result of 2 packages blacklisted:
6 packages built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Hi, how can this be used with betterlockscreen? |
From quickly checking on my phone it probably will not work. Note: I am not familiar with betterlockscreen I am making the assumption that it is just some sort of i3lock wrapper. |
I solved it. Betterlockscreen is a wrapper around i3lock-color. It has a config file where you can specify the path to the i3lock-color binary. Since this binary is symlinked to i3lock, all that's necessary is to set |
Noice good to know. My fix wouldn't work now that I checked how the betterlockscreen works. Glad you found solution. There isn't probably better way to do this right now :( at least not one that I can think of, since it's using wrapper with set PATH variable. |
Description of changes
Created programs.i3lock.
With option
u2fSupport
, to create wrapper around i3lock with setuid set and pam u2fAuth enabled.Which enables yubikey logins when screen locked using i3lock
setuid is workaround a known bug in i3lock i3/i3lock#198
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes