home/dconf: add cups management link to Utilities

This commit is contained in:
Max Headroom 2023-05-01 21:25:15 +02:00
parent 535c51712a
commit 0bea5c27b3
2 changed files with 7 additions and 1 deletions

View file

@ -3,10 +3,15 @@
let let
inherit (config.desktop) hiddenApps; inherit (config.desktop) hiddenApps;
hiddenDesktopFile = pkgs.writeText "hidden.desktop" ''
[Desktop Entry]
Hidden=true
NoDisplay=true
'';
hiddenAppsPackage = pkgs.runCommandLocal "hidden-apps" {} '' hiddenAppsPackage = pkgs.runCommandLocal "hidden-apps" {} ''
mkdir -p $out/share/applications mkdir -p $out/share/applications
for app in ${lib.escapeShellArgs hiddenApps}; do for app in ${lib.escapeShellArgs hiddenApps}; do
ln -sf /dev/null "$out/share/applications/$app" ln -sf ${hiddenDesktopFile} "$out/share/applications/$app"
done done
''; '';
in in

View file

@ -28,6 +28,7 @@ let
"org.gnome.eog.desktop" "org.gnome.eog.desktop"
"org.gnome.Evince.desktop" "org.gnome.Evince.desktop"
"htop.desktop" "htop.desktop"
"cups.desktop"
]; ];
}; };
"Pro Audio" = { "Pro Audio" = {