mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 21:11:54 -05:00
mauville/samba: migrate to settings syntax
This commit is contained in:
parent
71499fb75d
commit
966baacb9a
|
@ -52,19 +52,19 @@ in {
|
||||||
samba = {
|
samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
securityType = "user";
|
|
||||||
|
|
||||||
# extraConfig = ''
|
settings = {
|
||||||
# read raw = Yes
|
global = {
|
||||||
# write raw = Yes
|
security = "user";
|
||||||
# socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
|
"read raw" = "Yes";
|
||||||
# min receivefile size = 16384
|
"write raw" = "Yes";
|
||||||
# use sendfile = true
|
"socket options" = "TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072";
|
||||||
# aio read size = 16384
|
"min receivefile size" = 16384;
|
||||||
# aio write size = 16384
|
"use sendfile" = true;
|
||||||
# '';
|
"aio read size" = 16384;
|
||||||
|
"aio write size" = 16384;
|
||||||
|
};
|
||||||
|
|
||||||
shares = {
|
|
||||||
Media = {
|
Media = {
|
||||||
"create mask" = "0755";
|
"create mask" = "0755";
|
||||||
"directory mask" = "0755";
|
"directory mask" = "0755";
|
||||||
|
|
Loading…
Reference in a new issue