shitty and non-modular printer settings
This commit is contained in:
parent
89a1612df1
commit
cf6119bd98
3 changed files with 35 additions and 0 deletions
|
@ -67,6 +67,7 @@
|
|||
gaming.enable = true;
|
||||
documentation.enable = true;
|
||||
theme.enable = true;
|
||||
printing.enable = true;
|
||||
|
||||
autorandr = {
|
||||
enable = true;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
./stuff/xserver.nix
|
||||
./stuff/documentation.nix
|
||||
./stuff/theme.nix
|
||||
./stuff/printing.nix
|
||||
./stuff/gaming.nix
|
||||
./stuff/other-desktop-programs.nix
|
||||
./stuff/other-dev-programs.nix
|
||||
|
|
33
modules/stuff/printing.nix
Normal file
33
modules/stuff/printing.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib, pkgs, config, ...}: let
|
||||
inherit (lib) mkIf mkEnableOption mkOption;
|
||||
cfg = config.chuj.stuff.printing;
|
||||
in {
|
||||
options.chuj.stuff.printing = {
|
||||
enable = mkEnableOption "printing";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [ pkgs.brlaser ];
|
||||
};
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
hardware.printers = {
|
||||
ensurePrinters = [
|
||||
{
|
||||
name = "brother-dcp-1622we";
|
||||
deviceUri = "dnssd://Brother%20DCP-1610W%20series._pdl-datastream._tcp.local/?uuid=e3248000-80ce-11db-8000-c894023b7db8";
|
||||
model = "drv:///brlaser.drv/br1600.ppd";
|
||||
ppdOptions = {
|
||||
PageSize = "A4";
|
||||
};
|
||||
}
|
||||
];
|
||||
ensureDefaultPrinter = "brother-dcp-1622we";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue