nixos-config/modules/system/devices/networking/mounts/default.nix
2025-06-09 18:24:51 -04:00

34 lines
741 B
Nix

{ config, lib, nodes, ... }:
{
fileSystems = let
common = {
fsType = "nfs4";
options = [
"noauto"
"soft"
"x-systemd.automount"
];
};
in with nodes; {
"midas" = common // {
device = "midas:/storage";
mountPoint = "/network/Midas";
};
"kitty" = common // {
device = "kitty:/storage";
mountPoint = "/network/Kitty";
};
"detritus" = common // {
device = "detritus:/storage";
mountPoint = "/network/Detritus";
};
"elder" = common // {
device = "elder:/storage";
mountPoint = "/network/Elder";
};
"prophet" = common // {
device = "prophet:/storage";
mountPoint = "/network/Prophet";
};
};
}