update samba configuration
This commit is contained in:
@@ -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";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user