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";
# };
fileSystems."/srv/shatteredmint" =
fileSystems."/srv/private" =
{ device = "/dev/mapper/base--storage-ShatteredMINT";
fsType = "ext4";
};

View File

@@ -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

View File

@@ -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";
};
};
};