sid.ovh/hosts/rx4/services/samba.nix
sid 1bb2b7c194
All checks were successful
Flake check / flake-check (pull_request) Successful in 18s
Build hosts / build-hosts (pull_request) Successful in 33s
replace webdav with samba
2026-05-17 18:54:10 +02:00

27 lines
587 B
Nix

{ config, ... }:
{
services.samba = {
enable = true;
openFirewall = false;
nmbd.enable = false;
winbindd.enable = false;
settings = {
global = {
workgroup = "WORKGROUP";
"server string" = config.networking.hostName;
security = "user";
"map to guest" = "Bad User";
"guest account" = "nobody";
};
share = {
path = "/home/sid";
browseable = "yes";
"read only" = "yes";
"guest ok" = "yes";
"force user" = "sid";
"directory mask" = "0750";
};
};
};
}