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 {configVars, ...}: let
mediaDataMountPoint = configVars.locations.mediaDataMountPoint; fileserverIp = configVars.networking.addresses.fileserver.ip;
in { in {
fileSystems.${mediaDataMountPoint} = { fileSystems."/media/media" = {
device = "10.0.10.30:/mnt/media"; device = "${fileserverIp}:/srv/export/media";
fsType = "nfs"; fsType = "nfs";
options = ["noatime" "_netdev"]; 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 {configVars, ...}: let
photosDataMountPoint = configVars.locations.photosDataMountPoint; fileserverIp = configVars.networking.addresses.fileserver.ip;
in { in {
fileSystems.${photosDataMountPoint} = { fileSystems."/media/photos" = {
device = "10.0.10.30:/mnt/photos"; device = "${fileserverIp}:/srv/export/photos";
fsType = "nfs"; fsType = "nfs";
options = ["noatime" "_netdev" "ro"]; options = ["noatime" "_netdev"];
}; };
} }