Add host printer configs and refactor printing

Add printers.nix for Garand‑Desktop, Garand‑Laptop, and default hosts
with
printer definitions and a printEnable flag. Disable NFS by default in
the
host variables. Rewrite modules/core/printing.nix to import printer
settings, enable services only when printing is enabled, and add more
CUPS/Avahi options plus hardware.printers configuration. Add the lpadmin
group to the main user. Update the Messenger desktop entry URL to the
Facebook Messages page.
This commit is contained in:
2026-05-07 15:05:11 +02:00
parent 79769e4dc5
commit 2c2d54a4a7
9 changed files with 85 additions and 18 deletions
+21
View File
@@ -0,0 +1,21 @@
{
# Whether printing services should be enabled.
printEnable = false;
# Name of the default printer.
ensureDefaultPrinter = "[name]";
# List of printers to ensure are configured.
ensurePrinters = [
{
# URI of the printer device.
deviceUri = "ipp://[IPv4]/ipp";
# Physical location description of the printer.
location = "[location]";
# Humanreadable printer name.
name = "[name]";
# Printer model; "everywhere" uses generic driver.
model = "everywhere";
}
];
}
+1 -1
View File
@@ -35,7 +35,7 @@
nvidiaID = "PCI:0:2:0";
# Enable NFS
enableNFS = true;
enableNFS = false;
# Enable Printing Support
printEnable = false;