mayushii: Add samba vm share

neomutt
Simon Bruder 2021-11-02 11:13:59 +01:00
parent d22183a8c2
commit 60b0dc9c74
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 25 additions and 0 deletions

View File

@ -25,6 +25,31 @@
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 = {
enable = true;
client.enable = true;