summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/share
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/share')
-rw-r--r--makefu/2configs/share/gum.nix1
-rw-r--r--makefu/2configs/share/temp-share-samba.nix12
2 files changed, 13 insertions, 0 deletions
diff --git a/makefu/2configs/share/gum.nix b/makefu/2configs/share/gum.nix
index cc59ce3cc..55080b2a7 100644
--- a/makefu/2configs/share/gum.nix
+++ b/makefu/2configs/share/gum.nix
@@ -35,5 +35,6 @@ in {
};
networking.firewall.extraCommands = ''
iptables -A INPUT -i retiolum -p tcp --dport 445 -j ACCEPT
+ iptables -A INPUT -i wiregrill -p tcp --dport 445 -j ACCEPT
'';
}
diff --git a/makefu/2configs/share/temp-share-samba.nix b/makefu/2configs/share/temp-share-samba.nix
index 0907c2dbf..ac0eaa978 100644
--- a/makefu/2configs/share/temp-share-samba.nix
+++ b/makefu/2configs/share/temp-share-samba.nix
@@ -1,4 +1,10 @@
{config, ... }:{
+ services.avahi = {
+ enable = true;
+ interfaces = [ config.makefu.server.primary-itf ];
+ publish.enable = true;
+ publish.userServices = true;
+ };
networking.firewall.allowedUDPPorts = [ 137 138 ];
networking.firewall.allowedTCPPorts = [ 139 445 ];
users.users.smbguest = {
@@ -17,6 +23,12 @@
browseable = "yes";
"guest ok" = "yes";
};
+ movies = {
+ path = "/home/makefu/movies";
+ "read only" = "yes";
+ browseable = "yes";
+ "guest ok" = "yes";
+ };
};
extraConfig = ''
guest account = smbguest