summaryrefslogtreecommitdiff
path: root/ilex/configuration.nix
diff options
context:
space:
mode:
authorstuebinm2024-12-09 14:49:36 +0100
committerstuebinm2024-12-09 14:49:36 +0100
commit1ca127918cf38fb8d2c1cf23bee2dc02c1480e02 (patch)
tree22d221d129e41f8ba15530fd7de8cde32e029567 /ilex/configuration.nix
parent209be8d664a88b50bb835ea43b607262d4a49067 (diff)
ilex: printing/scanning specialisation
Diffstat (limited to '')
-rw-r--r--ilex/configuration.nix22
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 = {