summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = {