flake: pull printing out into global modules

This commit is contained in:
Infinidoge 2025-03-11 14:05:31 -04:00
parent 28c5624eb8
commit e941f94e3c
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
6 changed files with 58 additions and 89 deletions

View file

@ -39,16 +39,10 @@
environment.enableDebugInfo = true;
services.printing.drivers = [ pkgs.tmx-cups-ppd ];
modules = {
hardware = {
gpu.intel = true;
form.laptop = true;
peripherals = {
printing.enable = true;
};
};
desktop = {
wm.enable = true;
@ -71,12 +65,9 @@
programs.kdeconnect.enable = true;
services.printing.enable = true;
hardware.printers.ensurePrinters = [
{
name = "EPSON-TM-m30";
deviceUri = "usb://EPSON/TM-m30II-NT?serial=5839394D0032780000";
model = "tm-m30-rastertotmt.ppd.gz";
}
{
name = "EPSON-TM-m30-remote";
deviceUri = "ipp://100.101.102.18/printers/EPSON-TM-m30";