bogos binted
This commit is contained in:
parent
8f8b050bd1
commit
aeb743ac90
2 changed files with 28 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./dunst.nix
|
||||
./flameshot.nix
|
||||
./printing.nix
|
||||
./sddm.nix
|
||||
./xserver.nix
|
||||
];
|
||||
|
|
27
services/printing.nix
Normal file
27
services/printing.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ ... }:
|
||||
{
|
||||
services = {
|
||||
printing = {
|
||||
enable = true;
|
||||
allowFrom = [ "localhost" "192.168.1.*" ];
|
||||
};
|
||||
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:///sample.drv/generpcl.ppd";
|
||||
ppdOptions = {
|
||||
PageSize = "A4";
|
||||
};
|
||||
}
|
||||
];
|
||||
ensureDefaultPrinter = "brother-dcp-1622we";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue