test samba configuration for nas

This commit is contained in:
2026-03-19 20:10:29 +01:00
parent abf0583f17
commit ae5f6f1fc4
4 changed files with 55 additions and 14 deletions

29
software/samba.nix Normal file
View File

@@ -0,0 +1,29 @@
{config, pkgs, ...} : {
services = {
samba = {
enable = true;
package = pkgs.samba4Full;
openFirewall = true;
settings = {
global = {
"server smb encrypt" = "required";
"server min protocol" = "SMB3_00";
"workgroup" = "WORKGROUP";
"security" = "user";
};
"private-shatteredmint" = {
"path" = "/srv/shatteredmint";
"writable" = "yes";
"comment" = "private share for shatteredmint";
"browseable" = "yes";
};
};
};
samba-wsdd = {
enable = true;
openFirewall = true;
};
};
}