sayuri: Add samba sharing files with windows VM
This requires enabling guest access in Windows [1]. [1] https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/guest-access-in-smb2-is-disabled-by-default
This commit is contained in:
parent
54242cc943
commit
95b65c5d15
|
@ -36,6 +36,31 @@
|
||||||
enableTor = true;
|
enableTor = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.samba = {
|
||||||
|
enable = true;
|
||||||
|
securityType = "user";
|
||||||
|
extraConfig = ''
|
||||||
|
interfaces = 192.168.122.1
|
||||||
|
bind interfaces only = yes
|
||||||
|
map to guest = bad user
|
||||||
|
load printers = no
|
||||||
|
printing = bsd
|
||||||
|
disable spoolss = yes
|
||||||
|
usershare max shares = 0
|
||||||
|
acl allow execute always = True
|
||||||
|
'';
|
||||||
|
shares = {
|
||||||
|
qemu = {
|
||||||
|
path = "/data/cache/win10/shared";
|
||||||
|
browseable = "yes";
|
||||||
|
"read only" = "no";
|
||||||
|
"guest ok" = "yes";
|
||||||
|
"force user" = "simon";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking.firewall.trustedInterfaces = [ "virbr0" ];
|
||||||
|
|
||||||
networking.hostName = "sayuri";
|
networking.hostName = "sayuri";
|
||||||
|
|
||||||
system.stateVersion = "20.03";
|
system.stateVersion = "20.03";
|
||||||
|
|
Loading…
Reference in a new issue