nixcfg/modules/homelab/samba.nix

37 lines
777 B
Nix
Raw Normal View History

2024-03-15 18:43:24 -04:00
{ config, pkgs, ... }:
{
services.samba = {
enable = true;
securityType = "user";
openFirewall = true;
shares = {
Media = {
comment = "Media @Mauville";
path = "/mnt/Media";
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0755";
"directory mask" = "0755";
};
Archive = {
comment = "Archive @Mauville";
2024-03-15 19:57:42 -04:00
path = "/mnt/Archive";
2024-03-15 18:43:24 -04:00
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0755";
"directory mask" = "0755";
};
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
}