summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--system/prefect.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/system/prefect.nix b/system/prefect.nix
index 77b1f185..f3696efe 100644
--- a/system/prefect.nix
+++ b/system/prefect.nix
@@ -60,6 +60,32 @@
   };
   networking.firewall.allowedTCPPorts = [ config.services.postgresql.port ];
 
+  networking.firewall.extraCommands = ''
+    iptables  -A nixos-fw -p udp --source 172.30.44.0/24        -j nixos-fw-accept
+    iptables  -A nixos-fw -p tcp --source 172.30.44.0/24        -j nixos-fw-accept
+    ip6tables -A nixos-fw -p tcp --source fdbf:4d14:b5de:0::/64 -j nixos-fw-accept
+    ip6tables -A nixos-fw -p udp --source fdbf:4d14:b5de:0::/64 -j nixos-fw-accept
+  '';
+
+  services.samba = {
+    enable = true;
+    shares = {
+      Music = {
+        path = "/data/Home/Music/";
+        browseable = true;
+        "guest ok" = true;
+      };
+      Videos = {
+        path = "/data/Home/Videos/";
+        browseable = true;
+        "guest ok" = true;
+      };
+    };
+    extraConfig = ''
+      hide files = desktop.ini
+    '';
+  };
+
   powerManagement.enable = false;
   powerManagement.cpuFreqGovernor = "performance";
   networking = {