cups: add xdg-open as dependency package as substitution does not work

for all desktop-envs
This commit is contained in:
Sebastian Sellmeier 2023-06-15 23:17:29 +02:00
parent 78419edadf
commit 57071b60fe
No known key found for this signature in database
GPG key ID: 51E2BE0CCC826F98

View file

@ -4,7 +4,7 @@ with lib;
let
inherit (pkgs) cups cups-pk-helper cups-filters;
inherit (pkgs) cups cups-pk-helper cups-filters xdg-utils;
cfg = config.services.printing;
@ -313,7 +313,9 @@ in
description = "CUPS printing services";
};
environment.systemPackages = [ cups.out ] ++ optional polkitEnabled cups-pk-helper;
# We need xdg-open (part of xdg-utils) for the desktop-file to proper open the users default-browser when opening "Manage Printing"
# https://github.com/NixOS/nixpkgs/pull/237994#issuecomment-1597510969
environment.systemPackages = [ cups.out xdg-utils ] ++ optional polkitEnabled cups-pk-helper;
environment.etc.cups.source = "/var/lib/cups";
services.dbus.packages = [ cups.out ] ++ optional polkitEnabled cups-pk-helper;