diff --git a/machines/sayuri/configuration.nix b/machines/sayuri/configuration.nix index 293d680..b5553c2 100644 --- a/machines/sayuri/configuration.nix +++ b/machines/sayuri/configuration.nix @@ -36,6 +36,31 @@ 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"; system.stateVersion = "20.03";