Files
nixos/hosts/nb-01.cloonar.com/modules/printer.nix

24 lines
580 B
Nix

{ lib, ... }:
let
brother = "Brother_HL-L2360D";
hostName = "brn30055c566237.cloonar.multimedia";
in {
services.printing.enable = true;
services.avahi.enable = true;
services.avahi.nssmdns = true;
services.avahi.openFirewall = true;
# hardware.printers = {
# ensureDefaultPrinter = brother;
# ensurePrinters = [
# {
# name = brother;
# deviceUri = "ipp://${hostName}/ipp";
# model = "everywhere";
# description = lib.replaceStrings [ "_" ] [ " " ] brother;
# location = "Study";
# }
# ];
# };
}