sayncthing ig
This commit is contained in:
parent
cef112b672
commit
22a2d35ae8
12 changed files with 283 additions and 15 deletions
|
|
@ -31,5 +31,20 @@
|
|||
};
|
||||
|
||||
imports = [ ./hardware.nix ];
|
||||
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
subject.isInGroup("users")
|
||||
&& (
|
||||
action.id == "org.freedesktop.login1.suspend"
|
||||
)
|
||||
)
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue