From 19dc19690b00b3a8d9440749c465c6424e8c6cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Wed, 18 Jan 2017 20:16:49 +0100 Subject: [PATCH 1/2] system-config-printer: add missing dependency 'pycairo' Noticed when running on KDE (in contrast with GNOME, which probably pulls in pycairo via some impurity). --- pkgs/tools/misc/system-config-printer/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/system-config-printer/default.nix b/pkgs/tools/misc/system-config-printer/default.nix index ab4a008fa092..fc4a24ec355b 100644 --- a/pkgs/tools/misc/system-config-printer/default.nix +++ b/pkgs/tools/misc/system-config-printer/default.nix @@ -27,7 +27,7 @@ in stdenv.mkDerivation rec { ]; pythonPath = with pythonPackages; - [ pycups pycurl dbus-python pygobject3 requests2 ]; + [ pycups pycurl dbus-python pygobject3 requests2 pycairo ]; configureFlags = [ "--with-udev-rules" From 6a52a130debae70422f7dc16c808df634ac7f13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Wed, 18 Jan 2017 19:50:04 +0100 Subject: [PATCH 2/2] nixos/kde5: enable system-config-printer dbus service Without it, the following error is shown in the "Add Printer" window: Failed to group devices: 'The name org.fedoraproject.Config.Printing was not provided by any .service files' --- nixos/modules/services/x11/desktop-managers/kde5.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/x11/desktop-managers/kde5.nix b/nixos/modules/services/x11/desktop-managers/kde5.nix index de5bfe263d49..ee4ec0fc819f 100644 --- a/nixos/modules/services/x11/desktop-managers/kde5.nix +++ b/nixos/modules/services/x11/desktop-managers/kde5.nix @@ -229,6 +229,8 @@ in # Enable helpful DBus services. services.udisks2.enable = true; services.upower.enable = config.powerManagement.enable; + services.dbus.packages = + mkIf config.services.printing.enable [ pkgs.system-config-printer ]; # Extra UDEV rules used by Solid services.udev.packages = [