diff options
author | stuebinm | 2024-12-09 14:49:36 +0100 |
---|---|---|
committer | stuebinm | 2024-12-09 14:49:36 +0100 |
commit | 1ca127918cf38fb8d2c1cf23bee2dc02c1480e02 (patch) | |
tree | 22d221d129e41f8ba15530fd7de8cde32e029567 /ilex | |
parent | 209be8d664a88b50bb835ea43b607262d4a49067 (diff) |
ilex: printing/scanning specialisation
Diffstat (limited to 'ilex')
-rw-r--r-- | ilex/configuration.nix | 22 |
1 files 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 = { |