From d42eb5eee5ac14963f00c2cf82abd98d01a07749 Mon Sep 17 00:00:00 2001 From: workflow <4farlion@gmail.com> Date: Mon, 5 Aug 2024 21:32:27 +0100 Subject: [PATCH] feat(printing): enable CUPS client and auto-discovery via Avahi --- configuration.nix | 1 + flake.lock | 4 ++-- system/printing.nix | 9 +++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 system/printing.nix diff --git a/configuration.nix b/configuration.nix index 60fba6b..e02d987 100644 --- a/configuration.nix +++ b/configuration.nix @@ -23,6 +23,7 @@ in { ./system/nix-ld.nix ./system/performance.nix ./system/power.nix + ./system/printing.nix ./system/screens.nix ./system/security.nix ./system/steam.nix diff --git a/flake.lock b/flake.lock index 81661f5..643bece 100644 --- a/flake.lock +++ b/flake.lock @@ -171,8 +171,8 @@ }, "secrets": { "locked": { - "lastModified": 1722874678, - "narHash": "sha256-ydVwAjuaxtaDDa4B+0fdEtChyyeTukFoQKRdzm2Xaqw=", + "lastModified": 1722874837, + "narHash": "sha256-iPGpMQ/8svFam3wCiW2d/alZr9xKZ3UkaZMW77C8p+w=", "path": "/home/farlion/code/nixos-secrets", "type": "path" }, diff --git a/system/printing.nix b/system/printing.nix new file mode 100644 index 0000000..ca1b62c --- /dev/null +++ b/system/printing.nix @@ -0,0 +1,9 @@ +{...}: { + services.printing.enable = true; + + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; +}