diff --git a/system/shen/configuration.nix b/system/shen/configuration.nix index 9bb600f..7840c17 100644 --- a/system/shen/configuration.nix +++ b/system/shen/configuration.nix @@ -60,6 +60,32 @@ virtualisation.docker.enableNvidia = true; + services.samba = { + enable = true; + extraConfig = '' + workgroup = WORKGROUP + server string = smbnix + netbios name = smbnix + security = user + #use sendfile = yes + #max protocol = smb2 + # note: localhost is the ipv6 localhost ::1 + hosts allow = 172.16.1.201 127.0.0.1 localhost + hosts deny = 0.0.0.0/0 + guest account = nobody + map to guest = bad user + ''; + shares = { + public = { + path = "/storage/share"; + "read only" = false; + browsable = true; + "guest ok" = true; + comment = "Share"; + }; + }; + }; + # CADDY services.caddy = { enable = true;