diff options
| author | Franck Cuny <franck@fcuny.net> | 2023-12-09 09:15:23 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2023-12-09 09:15:23 -0800 |
| commit | 543fcc38c9c48349d6988b1ace119f0cef2d6efa (patch) | |
| tree | ae8174b09797fd19e365f60bf25a9d20b222c855 /profiles/samba.nix | |
| parent | install kind / configure the dock (diff) | |
| download | infra-543fcc38c9c48349d6988b1ace119f0cef2d6efa.tar.gz | |
delete even more unused configurations
Diffstat (limited to '')
| -rw-r--r-- | profiles/samba.nix | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/profiles/samba.nix b/profiles/samba.nix deleted file mode 100644 index 4ae8839..0000000 --- a/profiles/samba.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ config, pkgs, lib, ... }: -let - makePublicShare = path: { - name = builtins.baseNameOf path; - value = { - inherit path; - browseable = "yes"; - writeable = "no"; - "guest ok" = "yes"; - "guest only" = "yes"; - "force user" = "nobody"; - }; - }; - publicShares = [ "/data/fast/music" "/data/fast/videos" ]; -in -{ - # https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/network-filesystems/samba.nix - services.samba = { - enable = true; - 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 = with lib; (listToAttrs (map makePublicShare publicShares)); - }; -} |
