Fix NixOS polkit rule for defaulting to current user upon password request #288
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There is a polkit rule in place that is supposed to choose which user should write the password upon actions like
sudo- without this, polkit will first ask who in the list ofwheelusers you want to enter the password for (which is slightly annoying, especially when the numbers change). But this rule does not work as intended. You can find it in thebasedirectory in the pvv nixos config.See also: https://superuser.com/questions/1312042/is-there-a-way-to-make-the-polkit-agent-default-to-the-currently-logged-in-user
w-what?
why would it ask me this if it knows I'm
oysteiktlmaoThere's seemingly an option
security.polkit.adminIdentitiesthat might fix thisTried this, apparently it just doubles all the users...
hahahaha