From cf3846e876386eaa7bd1ce82222eec8566059fa6 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 22 Nov 2021 13:05:12 +0100 Subject: pkgs/profpatsch/shiki: add cups drivers and ban ipv6 mdns Based on the help in https://nixos.wiki/wiki/Printing#Client_.28Linux.29 the ipv6 resolver for mdns is broken (only in nixpkgs?) and will block & timeout. :) --- machines/profpatsch/shiki.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'machines') diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix index 4352a69a..d2792bf8 100644 --- a/machines/profpatsch/shiki.nix +++ b/machines/profpatsch/shiki.nix @@ -363,9 +363,26 @@ in { services.printing = { enable = true; - drivers = [ pkgs.gutenprint pkgs.gutenprintBin pkgs.hplip ]; + drivers = [ + pkgs.gutenprint + pkgs.gutenprintBin + # pkgs.hplip + unfreeAndNonDistributablePkgs.canon-cups-ufr2 + unfreeAndNonDistributablePkgs.dcp9020cdwlpr + ]; }; + # for discovering ddns printers. + services.avahi.enable = true; + # for being able to talk to ddns printers after finding them. + # disable v6 for mdns (argh) + services.avahi.nssmdns = false; + system.nssModules = [ pkgs.nssmdns ]; + system.nssDatabases.hosts = (lib.mkMerge [ + (lib.mkBefore [ "mdns4_minimal [NOTFOUND=return]" ]) # before resolve + (lib.mkAfter [ "mdns4" ]) # after dns + ]); + ########### # Programs -- cgit 1.4.1