diff options
author | Profpatsch <mail@profpatsch.de> | 2021-11-22 13:05:12 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-11-22 13:05:12 +0100 |
commit | cf3846e876386eaa7bd1ce82222eec8566059fa6 (patch) | |
tree | 3b136390424f7a5412d969d86b02496c2f394448 /machines | |
parent | fce76792e8399fafc61ee80aa91391f071a12b10 (diff) |
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. :)
Diffstat (limited to 'machines')
-rw-r--r-- | machines/profpatsch/shiki.nix | 19 |
1 files changed, 18 insertions, 1 deletions
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 |