switching all smb to nfs
This commit is contained in:
parent
a1434cee4e
commit
68c5ca2ce7
3 changed files with 9 additions and 42 deletions
|
@ -61,7 +61,7 @@
|
|||
|
||||
networking.hostName = "media-server"; # Define your hostname.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 3000 ];
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 2049 ];
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Toronto";
|
||||
|
@ -132,42 +132,11 @@
|
|||
server = {
|
||||
enable = true;
|
||||
exports = ''
|
||||
/mnt/shares/import *(rw,fsid=0,no_subtree_check)
|
||||
/mnt/shares/import *(rw,fsid=0,no_subtree_check,nohide,insecure,crossmnt)
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# services.samba = {
|
||||
# enable = true;
|
||||
# package = pkgs.sambaFull;
|
||||
# openFirewall = true;
|
||||
# settings = {
|
||||
# global = {
|
||||
# "workgroup" = "WORKGROUP";
|
||||
# "server string" = "media-server";
|
||||
# "netbios name" = "media-server";
|
||||
# "security" = "user";
|
||||
# # "hosts allow" = "192.168.50. 127.0.0.1 localhost";
|
||||
# # "hosts deny" = "0.0.0.0/0";
|
||||
# "guest account" = "nobody";
|
||||
# "map to guest" = "bad user";
|
||||
# };
|
||||
# "import" = {
|
||||
# "path" = "/mnt/shares/import";
|
||||
# "browseable" = "yes";
|
||||
# "read only" = "no";
|
||||
# "guest ok" = "no";
|
||||
# "create mask" = "0644";
|
||||
# "directory mask" = "0755";
|
||||
# "force user" = "media";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# services.samba-wsdd = {
|
||||
# enable = true;
|
||||
# openFirewall = true;
|
||||
# };
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
programs.nh = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue