update samba configuration

This commit is contained in:
2026-03-19 20:36:56 +01:00
parent ae5f6f1fc4
commit 4ff36b1000
3 changed files with 14 additions and 7 deletions

View File

@@ -26,7 +26,7 @@
# fsType = "ext4"; # fsType = "ext4";
# }; # };
fileSystems."/srv/shatteredmint" = fileSystems."/srv/private" =
{ device = "/dev/mapper/base--storage-ShatteredMINT"; { device = "/dev/mapper/base--storage-ShatteredMINT";
fsType = "ext4"; fsType = "ext4";
}; };

View File

@@ -2,8 +2,8 @@
{ {
environment.systemPackages = [ pkgs.cifs-utils ]; environment.systemPackages = [ pkgs.cifs-utils ];
fileSystems."/mnt/share" = { fileSystems."/mnt/share/private" = {
device = "//192.168.178.108/srv/private-shatteredmint"; device = "//192.168.178.108/shatteredmint";
fsType = "cifs"; fsType = "cifs";
options = let options = let
# this line prevents hanging on network split # this line prevents hanging on network split

View File

@@ -11,13 +11,20 @@
"server min protocol" = "SMB3_00"; "server min protocol" = "SMB3_00";
"workgroup" = "WORKGROUP"; "workgroup" = "WORKGROUP";
"security" = "user"; "security" = "user";
"browseable" = "yes";
}; };
"private-shatteredmint" = { # "private-shatteredmint" = {
"path" = "/srv/shatteredmint"; # "path" = "/srv/shatteredmint";
# "writable" = "yes";
# "comment" = "private share for shatteredmint";
# "browseable" = "yes";
# };
"homes" = {
"path" = "/srv/private/%S";
"writable" = "yes"; "writable" = "yes";
"comment" = "private share for shatteredmint"; "comment" = "homes share";
"browseable" = "yes"; "browseable" = "no";
}; };
}; };
}; };