configurations for my servers and desktops
nix nixos flake dots dotfiles

chore: nvm no nfs

samba is basically just as fast and more compatible

-32
-32
hosts/bluepill/services/samba.nix
··· 1 1 {pkgs, ...}: { 2 - # Samba shares 3 - 4 2 users.groups.share-general.members = ["transmission" "devin"]; 5 3 users.groups.share-media.members = ["jellyfin" "navidrome" "slskd" "transmission" "devin"]; 6 4 ··· 65 63 "writeable" = "yes"; 66 64 }; 67 65 }; 68 - }; 69 - 70 - # NFS shares (testing) 71 - 72 - networking.firewall.interfaces.tailscale0 = { 73 - allowedTCPPorts = [111 2049 4000 4001 4002 20048]; 74 - allowedUDPPorts = [111 2049 4000 4001 4002 20048]; 75 - }; 76 - 77 - fileSystems."/export/general" = { 78 - device = "/srv/general"; 79 - options = ["bind"]; 80 - }; 81 - 82 - fileSystems."/export/media" = { 83 - device = "/srv/media"; 84 - options = ["bind"]; 85 - }; 86 - 87 - services.nfs.server = { 88 - enable = true; 89 - lockdPort = 4001; 90 - mountdPort = 4002; 91 - statdPort = 4000; 92 - extraNfsdConfig = ''''; 93 - exports = '' 94 - /export *(rw,fsid=0,no_subtree_check) 95 - /export/general *(rw,nohide,insecure,no_subtree_check) 96 - /export/media *(rw,nohide,insecure,no_subtree_check) 97 - ''; 98 66 }; 99 67 }