mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
14 lines
298 B
Nix
14 lines
298 B
Nix
{ config, ... }:
|
|
let
|
|
user = config.users.users.me.name;
|
|
in
|
|
{
|
|
security.polkit.extraConfig = ''
|
|
polkit.addRule(function(action, subject) {
|
|
if (subject.user == "${user}" && action.id == "org.freedesktop.systemd1.manage-units") {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|
|
'';
|
|
}
|