nixos-config/modules/system/devices/networking/mounts/default.nix

31 lines
655 B
Nix

{ config, lib, nodes, ... }:
{
fileSystems = let
common = {
fsType = "nfs";
options = [
"noatime"
"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";
};
"prophet" = common // {
device = "prophet:/storage";
mountPoint = "/network/Prophet";
};
};
}