Polkit: Difference between revisions
Artoria2e5 (talk | contribs) |
Artoria2e5 (talk | contribs) →Writing rules: /etc/polkit-1/rules.d/10-nixos.rules |
||
Line 11: | Line 11: | ||
On NixOS, Polkit uses [https://duktape.org/ Duktape] as its JavaScript runtime. Keep that in mind when you try to write newfangled code. | On NixOS, Polkit uses [https://duktape.org/ Duktape] as its JavaScript runtime. Keep that in mind when you try to write newfangled code. | ||
The rules you write, together with any rule generated by <code>security.polkit</code>, is stored at <code>/etc/polkit-1/rules.d/10-nixos.rules</code> for the current running generation. | |||
=== Reboot/poweroff for unprivileged users === | === Reboot/poweroff for unprivileged users === |