flake: pull printing out into global modules
This commit is contained in:
parent
28c5624eb8
commit
e941f94e3c
6 changed files with 58 additions and 89 deletions
20
modules/global/printing.nix
Normal file
20
modules/global/printing.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.mkIf config.services.printing.enable {
|
||||
services.printing.drivers = with 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";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue