ma temp-share-samba: export more

This commit is contained in:
makefu 2019-09-25 14:51:15 +02:00
parent 60087eedb9
commit 4eed719039
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -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