dotfiles/terranix/lib/nfs_volume.nix
Magic_RB 9b1c305c3b Base terranix configuration
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-16 16:11:19 +02:00

31 lines
502 B
Nix

{}:
{ volume_name
, access_mode
, server
, share
, mount_flags ? []
}:
{
type = "csi";
plugin_id = "org.democratic-csi.nfs";
volume_id = volume_name;
name = volume_name;
external_id = volume_name;
capability = {
inherit access_mode;
attachment_mode = "file-system";
};
context = {
inherit server share;
node_attach_driver = "nfs";
provisioner_driver = "node-manual";
};
mount_options = {
fs_type = "nfs";
inherit mount_flags;
};
}