nixos/modules/smb.nix
2022-08-16 00:14:37 -04:00

22 lines
512 B
Nix

{
services.samba-wsdd.enable = true; # make shares visible for windows 10 clients
networking.firewall = {
allowedTCPPorts = [ 139 445 ];
allowedUDPPorts = [ 137 138 ];
};
services.samba = {
enable = true;
securityType = "user";
openFirewall = true;
shares = {
Share = {
path = "/home/gerg/Share";
browseable = "no";
"read only" = "no";
"guest ok" = "no";
"force user" = "gerg";
"force group" = "users";
};
};
};
}