From 60b0dc9c747155c36faecbde69fbaa104e966430 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 2 Nov 2021 11:13:59 +0100 Subject: [PATCH] mayushii: Add samba vm share --- machines/mayushii/configuration.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/machines/mayushii/configuration.nix b/machines/mayushii/configuration.nix index 9b052d2..0bd0ce8 100644 --- a/machines/mayushii/configuration.nix +++ b/machines/mayushii/configuration.nix @@ -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;