mayushii: Add samba vm share

This commit is contained in:
Simon Bruder 2021-11-02 11:13:59 +01:00
parent d22183a8c2
commit 60b0dc9c74
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -25,6 +25,31 @@
qemuPackage = pkgs.qemu_kvm; qemuPackage = pkgs.qemu_kvm;
}; };
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 = "/home/simon/.cache/vm-share";
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"force user" = "simon";
};
};
};
networking.firewall.trustedInterfaces = [ "virbr0" ];
services.tor = { services.tor = {
enable = true; enable = true;
client.enable = true; client.enable = true;