samba: init

This commit is contained in:
Nico 2026-02-14 21:13:47 +11:00
parent edc3090577
commit 0e23397308
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
2 changed files with 28 additions and 0 deletions

View file

@ -83,4 +83,15 @@
import block_non_private_ips
'';
};
# setup network samba share
services.samba.settings = {
"media" = {
"path" = "/media/media";
"valid users" = "@users";
"force user" = "nobody";
"public" = "no";
"read only" = "yes";
};
};
}

View file

@ -0,0 +1,17 @@
{ config, ... }:
{
services.samba = {
enable = true;
openFirewall = true;
settings = {
global = {
"workgroup" = "WORKGROUP";
"server string" = "${config.networking.hostName}";
"netbios name" = "${config.networking.hostName}";
"security" = "user";
};
};
};
}