FEATURE: add nfs-clients for new fileserver
This commit is contained in:
parent
4453af9e45
commit
8d69a14fb6
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
fileSystems."/media/homeshare" = {
|
|
||||||
device = "10.0.10.30:/mnt/homeshare";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = [ "noatime" "_netdev" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -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"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -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"];
|
||||||
|
};
|
||||||
|
}
|
|
@ -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"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue