add smb share
This commit is contained in:
parent
05c5addf52
commit
58d69a55f4
1 changed files with 46 additions and 0 deletions
|
|
@ -68,7 +68,53 @@ in {
|
|||
stopIfChanged = false;
|
||||
};
|
||||
|
||||
users.users.polycule = {
|
||||
isNormalUser = true;
|
||||
description = "Polycule";
|
||||
extraGroups = [ ];
|
||||
packages = with pkgs; [];
|
||||
};
|
||||
|
||||
services = {
|
||||
samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
global = {
|
||||
"workgroup" = "WORKGROUP";
|
||||
"server string" = "smbnix";
|
||||
"netbios name" = "smbnix";
|
||||
"security" = "user";
|
||||
#"use sendfile" = "yes";
|
||||
#"max protocol" = "smb2";
|
||||
# note: localhost is the ipv6 localhost ::1
|
||||
"hosts allow" = "0.0.0.0/0";
|
||||
"guest account" = "nobody";
|
||||
"map to guest" = "bad user";
|
||||
};
|
||||
# "public" = {
|
||||
# "path" = "/mnt/Shares/Public";
|
||||
# "browseable" = "yes";
|
||||
# "read only" = "no";
|
||||
# "guest ok" = "yes";
|
||||
# "create mask" = "0644";
|
||||
# "directory mask" = "0755";
|
||||
# "force user" = "username";
|
||||
# "force group" = "groupname";
|
||||
# };
|
||||
"private" = {
|
||||
"path" = "/Velaris/Storage/Shares";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"guest ok" = "no";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
"force user" = "polycule";
|
||||
"force group" = "polycule";
|
||||
};
|
||||
};
|
||||
};
|
||||
nfs.server = {
|
||||
enable = true;
|
||||
createMountPoints = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue