mayushii: Add samba vm share
This commit is contained in:
parent
d22183a8c2
commit
60b0dc9c74
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue