re-organize
This commit is contained in:
parent
81b49aa923
commit
350973f556
35 changed files with 8 additions and 8 deletions
20
modules/desktop/polkit.nix
Normal file
20
modules/desktop/polkit.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = [
|
||||
(pkgs.writeTextDir "share/polkit-1/actions/com.henryhiles.quados.policy" ''
|
||||
<!DOCTYPE policyconfig PUBLIC '-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN' 'http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd'>
|
||||
|
||||
<policyconfig>
|
||||
<action id='com.henryhiles.quados.rebuild'>
|
||||
<description>Rebuild</description>
|
||||
<message>Authentication is required to rebuild the system</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin_keep</allow_any>
|
||||
<allow_inactive>auth_admin_keep</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key='org.freedesktop.policykit.exec.path'>/home/quadradical/.local/bin/rebuildExec</annotate>
|
||||
</action>
|
||||
</policyconfig>
|
||||
'')
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue