From 966baacb9a151c56bb92c24461bc3e5b88ad772e Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 1 Oct 2024 18:54:38 -0400 Subject: [PATCH] mauville/samba: migrate to settings syntax --- hosts/mauville/default.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/hosts/mauville/default.nix b/hosts/mauville/default.nix index f98b0db9..5413205e 100644 --- a/hosts/mauville/default.nix +++ b/hosts/mauville/default.nix @@ -52,19 +52,19 @@ in { samba = { enable = true; openFirewall = true; - securityType = "user"; - # extraConfig = '' - # read raw = Yes - # write raw = Yes - # socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 - # min receivefile size = 16384 - # use sendfile = true - # aio read size = 16384 - # aio write size = 16384 - # ''; + settings = { + global = { + security = "user"; + "read raw" = "Yes"; + "write raw" = "Yes"; + "socket options" = "TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072"; + "min receivefile size" = 16384; + "use sendfile" = true; + "aio read size" = 16384; + "aio write size" = 16384; + }; - shares = { Media = { "create mask" = "0755"; "directory mask" = "0755";