gitea repo
This commit is contained in:
commit
f610209aff
66 changed files with 2439 additions and 0 deletions
16
modules/misc/polkit.nix
Normal file
16
modules/misc/polkit.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
security.polkit.enable = true;
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if ((action.id == "org.xfce.thunar" ||
|
||||
action.id == "org.freedesktop.policykit.exec" ||
|
||||
action.id == "org.gnome.gparted" ||
|
||||
action.id == "org.freedesktop.udisks2.filesystem-mount-system") &&
|
||||
subject.isInGroup("wheel"))
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue