Merge pull request #237994 from SebTM/fix/cups-xdg-missing

cups: add dependency for xdg-open
This commit is contained in:
Guillaume Girol 2023-07-13 18:22:46 +00:00 committed by GitHub
commit aaf4aa7c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;