cups: Add elma

upower
Simon Bruder 2021-07-04 20:51:28 +02:00
parent 298ef93ed5
commit 12e24d0761
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 11 additions and 1 deletions

View File

@ -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";
}
];
}

View File

@ -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