From e02aa9651bba1683877b29920d1d021aca8bcd13 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 6 Apr 2022 07:20:19 -0700 Subject: refactor samba to a proper module The list of public share is configurable too. --- hosts/common/server/samba.nix | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 hosts/common/server/samba.nix (limited to 'hosts/common') diff --git a/hosts/common/server/samba.nix b/hosts/common/server/samba.nix deleted file mode 100644 index 7df989d..0000000 --- a/hosts/common/server/samba.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - services.samba = { - enable = true; - securityType = "user"; - extraConfig = '' - workgroup = WORKGROUP - server string = tahoe - netbios name = tahoe - security = user - guest account = nobody - mangled names = no - client min protocol = SMB2 - map to guest = bad user - ntlm auth = true - ''; - shares = { - music = { - path = "/data/fast/music"; - browseable = "yes"; - "read only" = "yes"; - "guest ok" = "yes"; - }; - videos = { - path = "/data/fast/videos"; - browseable = "yes"; - "read only" = "yes"; - "guest ok" = "yes"; - }; - }; - }; -} -- cgit 1.4.1