flake/hosts/blacksteel/services/samba.nix

26 lines
425 B
Nix
Raw Normal View History

2024-08-11 10:08:41 +00:00
{
services.samba = {
enable = true;
openFirewall = true;
shares = {
"share" = {
path = "/srv/samba/share";
"read only" = "no";
};
"external" = {
path = "/mnt";
"read only" = "no";
};
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
systemd.tmpfiles.rules = [
"d /srv/samba/share 0755 guanranwang root"
];
}