add stuff

This commit is contained in:
Henry Hiles 2024-03-12 18:59:43 -04:00
parent ab07bc448c
commit 771f4b6317
4 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1 @@
{environment.localBinInPath = true;}

View file

@ -0,0 +1,3 @@
{
services.flatpak.enable = true;
}

View file

@ -18,7 +18,7 @@
pciutils
monophony
alejandra
grapejuice
nodejs_21
impression
libreoffice
virt-manager

View 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>
'')
];
}