35 lines
932 B
Nix
35 lines
932 B
Nix
|
|
{ pkgs, ... }:
|
||
|
|
|
||
|
|
{
|
||
|
|
# Ensure NFS support is installed
|
||
|
|
environment.systemPackages = [ pkgs.nfs-utils ];
|
||
|
|
|
||
|
|
fileSystems = {
|
||
|
|
"/home/chris/Stardust" = {
|
||
|
|
device = "192.168.2.158:/mnt/tower/stardust/chris/files";
|
||
|
|
fsType = "nfs4";
|
||
|
|
options = [
|
||
|
|
"defaults"
|
||
|
|
"x-systemd.mount-timeout=5"
|
||
|
|
"user"
|
||
|
|
"exec"
|
||
|
|
"x-systemd.automount" # Mounts on access
|
||
|
|
"noauto" # Doesn't block boot if server is down
|
||
|
|
];
|
||
|
|
};
|
||
|
|
|
||
|
|
"/home/chris/Foundry" = {
|
||
|
|
device = "192.168.2.158:/mnt/tower/foundry/Data";
|
||
|
|
fsType = "nfs4";
|
||
|
|
options = [
|
||
|
|
"defaults"
|
||
|
|
"x-systemd.mount-timeout=5"
|
||
|
|
"user"
|
||
|
|
"exec"
|
||
|
|
"x-systemd.automount"
|
||
|
|
"noauto"
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|