feat: open ports for nfs shares [winters]

This commit is contained in:
Swarsel 2024-09-23 23:51:18 +02:00
parent a3fa94958f
commit 33cfbba58b
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 54 additions and 50 deletions

View file

@ -6584,8 +6584,8 @@ Also, the system state version is set here. No need to touch it.
**** nfs/samba (smb)
#+begin_src nix :tangle profiles/server/common/nfs.nix
{ pkgs, lib, config, ... }:
{
{ pkgs, lib, config, ... }:
{
services = {
# Network shares
# add a user with sudo smbpasswd -a <user>
@ -6609,7 +6609,7 @@ Also, the system state version is set here. No need to touch it.
# Required for samba to register mDNS records for auto discovery
# See https://github.com/NixOS/nixpkgs/blob/592047fc9e4f7b74a4dc85d1b9f5243dfe4899e3/pkgs/top-level/all-packages.nix#L27268
enable = true;
# openFirewall = true;
openFirewall = true;
shares.Eternor = {
browseable = "yes";
"read only" = "no";
@ -6629,14 +6629,16 @@ Also, the system state version is set here. No need to touch it.
nssmdns4 = true;
# ^^ Not one hundred percent sure if this is needed- if it aint broke, don't fix it
enable = true;
openFirewall = true;
};
samba-wsdd = {
# This enables autodiscovery on windows since SMB1 (and thus netbios) support was discontinued
enable = true;
openFirewall = true;
};
};
}
}
#+end_src
**** NGINX

View file

@ -23,7 +23,7 @@
# Required for samba to register mDNS records for auto discovery
# See https://github.com/NixOS/nixpkgs/blob/592047fc9e4f7b74a4dc85d1b9f5243dfe4899e3/pkgs/top-level/all-packages.nix#L27268
enable = true;
# openFirewall = true;
openFirewall = true;
shares.Eternor = {
browseable = "yes";
"read only" = "no";
@ -43,11 +43,13 @@
nssmdns4 = true;
# ^^ Not one hundred percent sure if this is needed- if it aint broke, don't fix it
enable = true;
openFirewall = true;
};
samba-wsdd = {
# This enables autodiscovery on windows since SMB1 (and thus netbios) support was discontinued
enable = true;
openFirewall = true;
};
};
}