nix-conf/modules/nixos/nfs-share.nix

19 lines
438 B
Nix
Raw Normal View History

2025-02-01 18:35:58 +01:00
{
config,
lib,
...
}: {
options = {
crony.nfs-share.enable = lib.mkEnableOption "Setup personal nfs share mount.";
};
config = lib.mkIf config.crony.nfs-share.enable {
# Nfs share
fileSystems."/mnt/share" = {
device = "192.168.0.4:/mnt/nfs";
fsType = "nfs";
options = ["_netdev" "noauto" "x-systemd.automount" "x-systemd.mount-timeout=10" "timeo=14" "x-systemd.idle-timeout=600"];
};
};
}