configuration/common/components/printer.system.nix
2023-05-17 18:45:47 -07:00

23 lines
552 B
Nix

{ pkgs, ... }:
let
identity = import ../resources/identity.nix;
in
{
allowedUnfree = [ "brgenml1lpr" ];
services.printing = { enable = true; drivers = with pkgs; [ brgenml1cupswrapper ]; };
hardware.printers = {
ensureDefaultPrinter = "DCP-7065DN";
ensurePrinters = [{
name = "DCP-7065DN";
description = "Brother DCP-7065DN";
model = "brother-BrGenML1-cups-en.ppd";
deviceUri = "lpd://lumberjack.home.arpa/binary_p1";
}];
};
# Permissions
users.users.${identity.username}.extraGroups = [ "lp" ];
}