diff --git a/devices/nas.nix b/devices/nas.nix index 2b9e945..4171d07 100644 --- a/devices/nas.nix +++ b/devices/nas.nix @@ -26,7 +26,7 @@ # fsType = "ext4"; # }; - fileSystems."/srv/shatteredmint" = + fileSystems."/srv/private" = { device = "/dev/mapper/base--storage-ShatteredMINT"; fsType = "ext4"; }; diff --git a/network-shares.nix b/network-shares.nix index 6335bf5..7570345 100644 --- a/network-shares.nix +++ b/network-shares.nix @@ -2,8 +2,8 @@ { environment.systemPackages = [ pkgs.cifs-utils ]; - fileSystems."/mnt/share" = { - device = "//192.168.178.108/srv/private-shatteredmint"; + fileSystems."/mnt/share/private" = { + device = "//192.168.178.108/shatteredmint"; fsType = "cifs"; options = let # this line prevents hanging on network split diff --git a/software/samba.nix b/software/samba.nix index 4b64dd4..e83ea37 100644 --- a/software/samba.nix +++ b/software/samba.nix @@ -11,13 +11,20 @@ "server min protocol" = "SMB3_00"; "workgroup" = "WORKGROUP"; "security" = "user"; + "browseable" = "yes"; }; - "private-shatteredmint" = { - "path" = "/srv/shatteredmint"; + # "private-shatteredmint" = { + # "path" = "/srv/shatteredmint"; + # "writable" = "yes"; + # "comment" = "private share for shatteredmint"; + # "browseable" = "yes"; + # }; + "homes" = { + "path" = "/srv/private/%S"; "writable" = "yes"; - "comment" = "private share for shatteredmint"; - "browseable" = "yes"; + "comment" = "homes share"; + "browseable" = "no"; }; }; };