summaryrefslogtreecommitdiffstats
path: root/modules/hardware
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-01-31 15:11:10 -0500
committerJon Santmyer <jon@jonsantmyer.com>2026-01-31 15:11:10 -0500
commit40c65ac3e6226dcf5c834c0ba2447df1bd0ca37d (patch)
treee6778270b06aba249a2a42a8fa7b4af018da6132 /modules/hardware
parentf061e0b0c7ed745f372a89d5ec5f69dbd818c731 (diff)
parenta05421b0e4d18c29c9358cd89bea9a61d77d2147 (diff)
downloadnix-config-40c65ac3e6226dcf5c834c0ba2447df1bd0ca37d.tar.gz
nix-config-40c65ac3e6226dcf5c834c0ba2447df1bd0ca37d.tar.bz2
nix-config-40c65ac3e6226dcf5c834c0ba2447df1bd0ca37d.zip
Merge branch 'master' of ssh://git.jonsantmyer.com:49/home/git/nix-configHEADmaster
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;
+ };
+ }
+ ]);
+}