nix-config/modules/nixos/samba.nix
2026-03-13 06:08:04 +01:00

41 lines
780 B
Nix

{
services.samba = {
enable = true;
settings = {
global = {
"vfs objects" = "catia fruit streams_xattr";
"fruit:model" = "MacPro7,1@ECOLOR=226,226,224";
};
Cloud = {
path = "/mnt/cloud";
writeable = "yes";
};
Media = {
path = "/mnt/media";
writeable = "yes";
};
TimeMachine = {
path = "/mnt/timemachine";
writeable = "yes";
"fruit:time machine" = "yes";
"fruit:time machine max size" = "500G";
};
};
};
## Used to advertise the shares to Windows hosts
services.samba-wsdd.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
publish = {
enable = true;
userServices = true;
};
};
}