Skip to content

Commit

Permalink
feat(nuc): Add NFS mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Dec 20, 2023
1 parent 09ccb3d commit 7b2197a
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions hosts/nuc/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,55 @@
## ZFS
networking.hostId = "13e53d45";
boot.loader.grub.copyKernels = true;

## NFS
services.rpcbind.enable = true;
fileSystems = {
"/data/docs" = {
device = "unas.home:/data/docs";
fsType = "nfs";
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
};

"/data/media/books/audiobooks" = {
device = "unas.home:/data/media/books/audiobooks";
fsType = "nfs";
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
};
"/data/media/books/ebooks" = {
device = "unas.home:/data/media/books/audiobooks";
fsType = "nfs";
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
};

"/data/media/downloads" = {
device = "unas.home:/data/media/downloads";
fsType = "nfs";
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
};

"/data/media/video/shows" = {
device = "unas.home:/data/media/video/shows";
fsType = "nfs";
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
};

"/data/media/video/movies" = {
device = "unas.home:/data/media/video/movies";
fsType = "nfs";
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
};

"/data/media/photos" = {
device = "unas.home:/data/media/photos";
fsType = "nfs";
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
};

"/data/media/music" = {
device = "unas.home:/data/media/music";
fsType = "nfs";
options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
};
};
}

0 comments on commit 7b2197a

Please sign in to comment.