From bca72f1d780f9abd7959ce81e153c11913f218f3 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 22 Oct 2022 22:05:54 -0400 Subject: Enable samba share --- machines/dragon.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'machines/dragon.nix') diff --git a/machines/dragon.nix b/machines/dragon.nix index d7dc80e..740d308 100644 --- a/machines/dragon.nix +++ b/machines/dragon.nix @@ -28,6 +28,26 @@ in { orbekk.hledger-web.journalFile = "/var/lib/hledger-web/hledger/anniekj.journal"; + services.samba = { + enable = true; + extraConfig = '' + guest account = nobody + map to guest = bad user + ''; + shares = { + public = { + path = "/storage/upload"; + browseable = "yes"; + "read only" = "no"; + "guest ok" = "yes"; + "create mask" = "0644"; + "directory mask" = "0755"; + "force user" = "readonly"; + "force group" = "readonly"; + }; + }; + }; + # virtualisation.lxd.enable = true; boot = { -- cgit v1.2.3