Infini-OPTIPLEX: setup remote printing
This commit is contained in:
parent
3875cd4700
commit
6f0aabaaf3
1 changed files with 21 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
@ -14,9 +14,29 @@
|
|||
modules = {
|
||||
hardware.form.desktop = true;
|
||||
hardware.gpu.intel = true;
|
||||
hardware.peripherals.printing.enable = true;
|
||||
desktop.wm.enable = true;
|
||||
};
|
||||
|
||||
services.printing = {
|
||||
listenAddresses = [
|
||||
"localhost:631"
|
||||
"100.101.102.18:631"
|
||||
"infini-optiplex:631"
|
||||
];
|
||||
allowFrom = [ "all" ];
|
||||
defaultShared = true;
|
||||
openFirewall = true;
|
||||
drivers = [ pkgs.tmx-cups-ppd ];
|
||||
};
|
||||
|
||||
hardware.printers.ensurePrinters = [
|
||||
{
|
||||
name = "EPSON-TM-m30";
|
||||
deviceUri = "usb://EPSON/TM-m30II-NT?serial=5839394D0032780000";
|
||||
model = "tm-m30-rastertotmt.ppd.gz";
|
||||
}
|
||||
];
|
||||
|
||||
persist = {
|
||||
directories = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue