ma temp-share-samba: export more
This commit is contained in:
parent
60087eedb9
commit
4eed719039
|
@ -1,4 +1,10 @@
|
||||||
{config, ... }:{
|
{config, ... }:{
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
interfaces = [ config.makefu.server.primary-itf ];
|
||||||
|
publish.enable = true;
|
||||||
|
publish.userServices = true;
|
||||||
|
};
|
||||||
networking.firewall.allowedUDPPorts = [ 137 138 ];
|
networking.firewall.allowedUDPPorts = [ 137 138 ];
|
||||||
networking.firewall.allowedTCPPorts = [ 139 445 ];
|
networking.firewall.allowedTCPPorts = [ 139 445 ];
|
||||||
users.users.smbguest = {
|
users.users.smbguest = {
|
||||||
|
@ -17,6 +23,12 @@
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
};
|
};
|
||||||
|
movies = {
|
||||||
|
path = "/home/makefu/movies";
|
||||||
|
"read only" = "yes";
|
||||||
|
browseable = "yes";
|
||||||
|
"guest ok" = "yes";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
guest account = smbguest
|
guest account = smbguest
|
||||||
|
|
Loading…
Reference in a new issue