diff --git a/modules/cups.nix b/modules/cups.nix index 95b7abf..a852cc6 100644 --- a/modules/cups.nix +++ b/modules/cups.nix @@ -8,7 +8,10 @@ lib.mkIf config.sbruder.gui.enable { enable = true; drivers = with pkgs; [ gutenprint - ]; + ] ++ lib.optional config.sbruder.unfree.allowSoftware (unstable.cups-kyocera-ecosys-m552x-p502x.override { + # in Kyocera terms, EU means duplex enabled by default + region = "EU"; + }); }; avahi.enable = true; }; @@ -19,5 +22,11 @@ lib.mkIf config.sbruder.gui.enable { deviceUri = "socket://192.168.178.26"; model = "${gutenprintWithVersion}://bjc-TS3100-series/expert"; } + ] ++ lib.optionals config.sbruder.unfree.allowSoftware [ + { + name = "elma"; + deviceUri = "socket://elma.home.sbruder.de"; + model = "Kyocera/Kyocera ECOSYS P5021cdn.PPD"; + } ]; } diff --git a/modules/unfree.nix b/modules/unfree.nix index 3b8de8a..1d822b3 100644 --- a/modules/unfree.nix +++ b/modules/unfree.nix @@ -26,6 +26,7 @@ in "vista-fonts" "wallpaper-unfree" # defined in users/simon/modules/sway.nix ] ++ lib.optionals cfg.allowSoftware [ + "cups-kyocera-ecosys-m552x-p502x" # exception: the file header says MIT license, but explicitly forbids modifications WTF? "drone-runner-exec" # exception: same as drone.io "drone.io" # exception: is open source (but has usage restriction) "fahclient" # exception: for science