From 924b849bd4ae4b01798de1310027d42aa17f112f Mon Sep 17 00:00:00 2001 From: willifan Date: Mon, 13 May 2024 21:28:00 +0200 Subject: [PATCH] added printers --- hosts/common/default.nix | 1 + hosts/common/printers.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 hosts/common/printers.nix diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 2a473f0..cae5112 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -4,6 +4,7 @@ imports = [ ./nix-ld.nix ./boot.nix + ./printers.nix ]; networking.networkmanager.enable = true; diff --git a/hosts/common/printers.nix b/hosts/common/printers.nix new file mode 100644 index 0000000..2b13ad7 --- /dev/null +++ b/hosts/common/printers.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: +{ + services.printing.enable = true; + + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; +} \ No newline at end of file