unit/modules/datasync.nix

31 lines
724 B
Nix
Raw Normal View History

2021-02-08 13:42:35 +01:00
{ config, lib, pkgs, ... }:
{
services.samba = {
enable = true;
securityType = "share";
nsswins = true;
extraConfig = ''
workgroup = WORKGROUP
server string = samba
netbios name = samba
security = ${config.services.samba.securityType}
hosts allow = 10.0.1 localhost
2021-02-08 13:42:35 +01:00
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
'';
shares.public = {
# FIXME Change path accordingly
sharepath = "/vault/samba";
2021-02-08 13:42:35 +01:00
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "nobody";
"force group" = "nobody";
};
};
}