replace webdav with samba
This commit is contained in:
parent
dab1a39866
commit
1bb2b7c194
8 changed files with 30 additions and 106 deletions
27
hosts/rx4/services/samba.nix
Normal file
27
hosts/rx4/services/samba.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.samba = {
|
||||
enable = true;
|
||||
openFirewall = false;
|
||||
nmbd.enable = false;
|
||||
winbindd.enable = false;
|
||||
settings = {
|
||||
global = {
|
||||
workgroup = "WORKGROUP";
|
||||
"server string" = config.networking.hostName;
|
||||
security = "user";
|
||||
"map to guest" = "Bad User";
|
||||
"guest account" = "nobody";
|
||||
};
|
||||
share = {
|
||||
path = "/home/sid";
|
||||
browseable = "yes";
|
||||
"read only" = "yes";
|
||||
"guest ok" = "yes";
|
||||
"force user" = "sid";
|
||||
"directory mask" = "0750";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue