mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 03:43:55 -05:00
37 lines
775 B
Nix
37 lines
775 B
Nix
|
{ 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";
|
||
|
path = "/mnt/Media";
|
||
|
browseable = "yes";
|
||
|
"read only" = "no";
|
||
|
"guest ok" = "yes";
|
||
|
"create mask" = "0755";
|
||
|
"directory mask" = "0755";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.samba-wsdd = {
|
||
|
enable = true;
|
||
|
openFirewall = true;
|
||
|
};
|
||
|
}
|
||
|
|