diff --git a/system/features/printing.nix b/system/features/printing.nix new file mode 100644 index 0000000..e23bc70 --- /dev/null +++ b/system/features/printing.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: +{ + services.printing = { + enable = true; + drivers = [ pkgs.brlaser ]; + }; + hardware.printers = { + ensurePrinters = [ + { + name = "Brother_HL-L2370DW_series"; + location = "Home"; + deviceUri = "dnssd://Brother%20HL-L2370DW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af4f28c38"; + model = "drv:///brlaser.drv/brl2370d.ppd"; + ppdOptions = { + PageSize = "Letter"; + }; + } + ]; + ensureDefaultPrinter = "Brother_HL-L2370DW_series"; + }; +} diff --git a/system/hosts/mcp/default.nix b/system/hosts/mcp/default.nix index a8bde06..39b92c1 100644 --- a/system/hosts/mcp/default.nix +++ b/system/hosts/mcp/default.nix @@ -6,6 +6,7 @@ ../../authorized-keys.nix inputs.sops-nix.nixosModules.sops ../../features/gc.nix + ../../features/printing.nix ]; nixpkgs.config.allowUnfree = true;