generation 532 25.11.20250714.62e0f05
This commit is contained in:
22
system/services/printing.nix
Normal file
22
system/services/printing.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
printer = "SCS-public";
|
||||
in {
|
||||
services.printing.drivers = with pkgs; [foomatic-db-ppds];
|
||||
hardware.printers = {
|
||||
ensureDefaultPrinter = printer;
|
||||
# https://computing.cs.cmu.edu/desktop/printing-linux-private
|
||||
ensurePrinters = [
|
||||
{
|
||||
name = printer;
|
||||
deviceUri = "lpd://jginesin@scs-print.srv.cs.cmu.edu/${printer}";
|
||||
model =
|
||||
pkgs.foomatic-db-ppds.pname
|
||||
+ "/KONICA_MINOLTA-bizhub_360-Postscript-KONICA_MINOLTA.ppd.gz";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -9,5 +9,6 @@
|
||||
./syncthing/default.nix
|
||||
# ./resolved/default.nix (not enabled, in favor of dnsmasq)
|
||||
./dnsmasq/default.nix
|
||||
./printing.nix
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user