diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2023-07-13 18:22:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 18:22:46 +0000 |
commit | aaf4aa7c7e1356a39faae42d51b305d506b2cfe3 (patch) | |
tree | b114d2684a30ce0c9faf5e9c27e678d50fccb6a4 /nixos | |
parent | 03dcbf5a0bddb559d5396a3f509a1b2ae809b2d4 (diff) | |
parent | 57071b60fee67313a8ab1b9b44210a0491fafb94 (diff) | |
download | nixlib-aaf4aa7c7e1356a39faae42d51b305d506b2cfe3.tar nixlib-aaf4aa7c7e1356a39faae42d51b305d506b2cfe3.tar.gz nixlib-aaf4aa7c7e1356a39faae42d51b305d506b2cfe3.tar.bz2 nixlib-aaf4aa7c7e1356a39faae42d51b305d506b2cfe3.tar.lz nixlib-aaf4aa7c7e1356a39faae42d51b305d506b2cfe3.tar.xz nixlib-aaf4aa7c7e1356a39faae42d51b305d506b2cfe3.tar.zst nixlib-aaf4aa7c7e1356a39faae42d51b305d506b2cfe3.zip |
Merge pull request #237994 from SebTM/fix/cups-xdg-missing
cups: add dependency for xdg-open
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/printing/cupsd.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix index f6a23fb900f0..279b26bb8957 100644 --- a/nixos/modules/services/printing/cupsd.nix +++ b/nixos/modules/services/printing/cupsd.nix @@ -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; |