summaryrefslogtreecommitdiff
path: root/hosts/toaster/printer.nix
diff options
context:
space:
mode:
authorGrisha Shipunov2025-10-25 12:34:42 +0200
committerGrisha Shipunov2025-10-25 12:35:24 +0200
commitd6a79913fad0682121e13ca5a993c5bb560936dc (patch)
tree5af1921a2fd982d71899babd22f5c096185f53a9 /hosts/toaster/printer.nix
parentb6c0b0cb39b0512a0ab62c8b3356af62215c14e7 (diff)
add netowrk printing support
Diffstat (limited to 'hosts/toaster/printer.nix')
-rw-r--r--hosts/toaster/printer.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/hosts/toaster/printer.nix b/hosts/toaster/printer.nix
new file mode 100644
index 0000000..385df43
--- /dev/null
+++ b/hosts/toaster/printer.nix
@@ -0,0 +1,17 @@
+{ pkgs, ... }:
+{
+ # autodiscovery
+ services.avahi = {
+ enable = true;
+ nssmdns4 = true;
+ openFirewall = true;
+ };
+
+ services.printing = {
+ enable = true;
+ drivers = with pkgs; [
+ cups-filters
+ cups-browsed
+ ];
+ };
+}