FEATURE: add nfs-clients for new fileserver

This commit is contained in:
Sam 2025-01-19 11:30:52 +00:00
parent 4453af9e45
commit 8d69a14fb6
4 changed files with 16 additions and 16 deletions

View File

@ -1,9 +0,0 @@
{
fileSystems."/media/homeshare" = {
device = "10.0.10.30:/mnt/homeshare";
fsType = "nfs";
options = [ "noatime" "_netdev" ];
};
}

View File

@ -1,8 +1,8 @@
{configVars, ...}: let
mediaDataMountPoint = configVars.locations.mediaDataMountPoint;
fileserverIp = configVars.networking.addresses.fileserver.ip;
in {
fileSystems.${mediaDataMountPoint} = {
device = "10.0.10.30:/mnt/media";
fileSystems."/media/media" = {
device = "${fileserverIp}:/srv/export/media";
fsType = "nfs";
options = ["noatime" "_netdev"];
};

View File

@ -0,0 +1,9 @@
{configVars, ...}: let
fileserverIp = configVars.networking.addresses.fileserver.ip;
in {
fileSystems."/media/personal" = {
device = "${fileserverIp}:/srv/export/personal";
fsType = "nfs";
options = ["noatime" "_netdev"];
};
}

View File

@ -1,9 +1,9 @@
{configVars, ...}: let
photosDataMountPoint = configVars.locations.photosDataMountPoint;
fileserverIp = configVars.networking.addresses.fileserver.ip;
in {
fileSystems.${photosDataMountPoint} = {
device = "10.0.10.30:/mnt/photos";
fileSystems."/media/photos" = {
device = "${fileserverIp}:/srv/export/photos";
fsType = "nfs";
options = ["noatime" "_netdev" "ro"];
options = ["noatime" "_netdev"];
};
}