From e918f769d1747656131b002f1f844fa0eecdae9c Mon Sep 17 00:00:00 2001 From: buffet Date: Sun, 25 Feb 2024 20:07:16 +0100 Subject: [PATCH] feat: install cups and avahi on alice --- hosts/alice/default.nix | 1 + hosts/alice/printer.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 hosts/alice/printer.nix diff --git a/hosts/alice/default.nix b/hosts/alice/default.nix index 34386cb..baffd08 100644 --- a/hosts/alice/default.nix +++ b/hosts/alice/default.nix @@ -18,6 +18,7 @@ ./gpg.nix ./keyd.nix ./pipewire.nix + ./printer.nix ./sway.nix ./tlp.nix diff --git a/hosts/alice/printer.nix b/hosts/alice/printer.nix new file mode 100644 index 0000000..1711e39 --- /dev/null +++ b/hosts/alice/printer.nix @@ -0,0 +1,16 @@ +{pkgs, ...}: { + services = { + printing = { + enable = true; + drivers = with pkgs; [ + hplip + ]; + }; + + avahi = { + enable = true; + nssmdns = true; + openFirewall = true; + }; + }; +}