summaryrefslogtreecommitdiffstats
path: root/modules/hardware
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-01-31 15:09:18 -0500
committerJon Santmyer <jon@jonsantmyer.com>2026-01-31 15:09:18 -0500
commita05421b0e4d18c29c9358cd89bea9a61d77d2147 (patch)
treea260a42eded599e1fb34ea84fbf931f61352cb60 /modules/hardware
parent968c8b2ad3459c9834c3d4ccb799031f9be5b6ca (diff)
downloadnix-config-a05421b0e4d18c29c9358cd89bea9a61d77d2147.tar.gz
nix-config-a05421b0e4d18c29c9358cd89bea9a61d77d2147.tar.bz2
nix-config-a05421b0e4d18c29c9358cd89bea9a61d77d2147.zip
laptop updates 2026-01-31
Diffstat (limited to 'modules/hardware')
-rw-r--r--modules/hardware/printer.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/hardware/printer.nix b/modules/hardware/printer.nix
new file mode 100644
index 0000000..f4efd99
--- /dev/null
+++ b/modules/hardware/printer.nix
@@ -0,0 +1,21 @@
+{
+ config,
+ options,
+ lib,
+ pkgs,
+ ...
+}: let
+ device = config.modules.device;
+in {
+
+ config = lib.mkIf (device.hasPrinter) (lib.mkMerge [
+ {
+ services.printing.enable = true;
+ services.avahi = {
+ enable = true;
+ nssmdns4 = true;
+ openFirewall = true;
+ };
+ }
+ ]);
+}