summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/printing
diff options
context:
space:
mode:
authorSebastian Sellmeier <mail@sebastian-sellmeier.de>2023-06-15 23:17:29 +0200
committerSebastian Sellmeier <mail@sebastian-sellmeier.de>2023-07-13 15:37:00 +0200
commit57071b60fee67313a8ab1b9b44210a0491fafb94 (patch)
tree9214c86a37cd4316ffc0c02399a1aee421a8f9ce /nixos/modules/services/printing
parent78419edadf0fabbe5618643bd850b2f2198ed060 (diff)
cups: add xdg-open as dependency package as substitution does not work
for all desktop-envs
Diffstat (limited to 'nixos/modules/services/printing')
-rw-r--r--nixos/modules/services/printing/cupsd.nix6
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;