update samba configuration
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
# fsType = "ext4";
|
||||
# };
|
||||
|
||||
fileSystems."/srv/shatteredmint" =
|
||||
fileSystems."/srv/private" =
|
||||
{ device = "/dev/mapper/base--storage-ShatteredMINT";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user