42 lines
789 B
Nix
42 lines
789 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.samba = {
|
|
enable = true;
|
|
package = pkgs.samba4Full;
|
|
usershares.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";
|
|
};
|
|
};
|
|
};
|
|
|
|
## Used to advertise the shares to Windows hosts
|
|
services.samba-wsdd = {
|
|
enable = true;
|
|
};
|
|
|
|
services.avahi = {
|
|
enable = true;
|
|
publish.enable = true;
|
|
publish.userServices = true;
|
|
};
|
|
}
|