From 33290d2e141f0a03ab437559405d58ddb14cc5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=BCbner?= Date: Mon, 30 Jun 2025 09:25:57 +0200 Subject: [PATCH] Try to enable samba share --- dev_system.nix | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/dev_system.nix b/dev_system.nix index 512c76c..e79aa25 100644 --- a/dev_system.nix +++ b/dev_system.nix @@ -58,4 +58,40 @@ in }; }; }; + + # only temporary samba server + services.samba = { + enable = true; + securityType = "user"; + openFirewall = true; + settings = { + global = { + "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" = "0.0.0.0/0"; + "guest account" = "nobody"; + "map to guest" = "bad user"; + }; + "public" = { + "path" = "/mnt/Shares/Public"; + "browseable" = "yes"; + "read only" = "no"; + "guest ok" = "yes"; + "create mask" = "0644"; + "directory mask" = "0755"; + "force user" = "username"; + "force group" = "groupname"; + }; + }; + }; + + services.samba-wsdd = { + enable = true; + openFirewall = true; + }; }