test samba configuration for nas
This commit is contained in:
29
software/samba.nix
Normal file
29
software/samba.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user