add stuff
This commit is contained in:
parent
ab07bc448c
commit
771f4b6317
4 changed files with 25 additions and 1 deletions
1
modules/common-desktop/bin.nix
Normal file
1
modules/common-desktop/bin.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{environment.localBinInPath = true;}
|
3
modules/common-desktop/flatpak.nix
Normal file
3
modules/common-desktop/flatpak.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
}
|
|
@ -18,7 +18,7 @@
|
||||||
pciutils
|
pciutils
|
||||||
monophony
|
monophony
|
||||||
alejandra
|
alejandra
|
||||||
grapejuice
|
nodejs_21
|
||||||
impression
|
impression
|
||||||
libreoffice
|
libreoffice
|
||||||
virt-manager
|
virt-manager
|
||||||
|
|
20
modules/common-desktop/polkit.nix
Normal file
20
modules/common-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'>/run/current-system/sw/bin/flatpak</annotate>
|
||||||
|
</action>
|
||||||
|
</policyconfig>
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue