From 1ca127918cf38fb8d2c1cf23bee2dc02c1480e02 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 9 Dec 2024 14:49:36 +0100 Subject: ilex: printing/scanning specialisation --- ilex/configuration.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/ilex/configuration.nix b/ilex/configuration.nix index 17bec18..f8530b8 100644 --- a/ilex/configuration.nix +++ b/ilex/configuration.nix @@ -5,7 +5,22 @@ ./hardware-configuration.nix ]; - networking.firewall.allowedTCPPorts = [ 5000 ]; + specialisation.printing = { + configuration = { + services.avahi.enable = true; + services.avahi.nssmdns4 = true; + services.avahi.nssmdns6 = true; + services.ipp-usb.enable=true; + hardware.sane.enable = true; + users.users.stuebinm.extraGroups = [ "scanner" "lp" ]; + }; + inheritParentConfig = true; + }; + + services.tailscale.enable = true; + + networking.firewall.allowedTCPPorts = [ 5000 14054 ]; + networking.firewall.allowedUDPPorts = [ 9100 9103 ]; boot.kernelPackages = pkgs.linuxKernel.packageAliases.linux_latest; @@ -58,11 +73,6 @@ extensions = ps: [ ps.postgis ]; }; - # services.redis.servers."bookwyrm" = { - # enable = true; - # port = 6379; - # }; - services.tlp = { enable = true; settings = { -- cgit v1.2.3