29 lines
593 B
Nix
29 lines
593 B
Nix
|
{
|
||
|
services.samba = {
|
||
|
enable = true;
|
||
|
openFirewall = true;
|
||
|
|
||
|
shares = {
|
||
|
home = {
|
||
|
path = "/home/opdavies";
|
||
|
browseable = true;
|
||
|
writable = true;
|
||
|
"valid users" = [ "opdavies" ];
|
||
|
"force group" = "media";
|
||
|
"create mask" = "0660";
|
||
|
"directory mask" = "0770";
|
||
|
};
|
||
|
|
||
|
media = {
|
||
|
path = "/mnt/media";
|
||
|
browseable = true;
|
||
|
writable = true;
|
||
|
"valid users" = [ "opdavies" ];
|
||
|
"force group" = "media";
|
||
|
"create mask" = "0660";
|
||
|
"directory mask" = "0770";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|