summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-09-25 14:51:15 +0200
committermakefu <github@syntax-fehler.de>2019-09-25 14:51:15 +0200
commit4eed71903948153f936b526b02e0894d0ef6a111 (patch)
tree0e4944785ee54ceccbfa61776b34de2c6cc2f68d /makefu
parent60087eedb934ee2361fcffc3779151cbac1c2336 (diff)
ma temp-share-samba: export more
Diffstat (limited to 'makefu')
-rw-r--r--makefu/2configs/share/temp-share-samba.nix12
1 files changed, 12 insertions, 0 deletions
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