mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
22 lines
512 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|