remove samba
This commit is contained in:
parent
8ce73258b4
commit
94d93cbc51
2 changed files with 0 additions and 40 deletions
|
@ -22,7 +22,6 @@
|
|||
../modules/tc-cake.nix
|
||||
./services/cups.nix
|
||||
./services/iscsi.nix
|
||||
./services/samba.nix
|
||||
./services/docker.nix
|
||||
./users/remote-build.nix
|
||||
./services/nfs.nix
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
_: {
|
||||
services.samba-wsdd.enable = true; # make shares visible for windows 10 clients
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
5357 # wsdd
|
||||
];
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
3702 # wsdd
|
||||
];
|
||||
services.samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
extraConfig = ''
|
||||
workgroup = WORKGROUP
|
||||
server string = nas
|
||||
netbios name = nas
|
||||
security = user
|
||||
#use sendfile = yes
|
||||
#max protocol = smb2
|
||||
# note: localhost is the ipv6 localhost ::1
|
||||
hosts allow = 192.168.2. 127.0.0.1 localhost
|
||||
hosts deny = 0.0.0.0/0
|
||||
guest account = nobody
|
||||
map to guest = bad user
|
||||
'';
|
||||
shares = {
|
||||
install = {
|
||||
path = "/mnt/win";
|
||||
browseable = "yes";
|
||||
"read only" = "yes";
|
||||
"guest ok" = "yes";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
"force user" = "nobody";
|
||||
"force group" = "users";
|
||||
};
|
||||
};
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue