diff --git a/modules/linux/nixos/nfs-share.nix b/modules/linux/nixos/nfs-share.nix index 742e2c2..6c46f8c 100644 --- a/modules/linux/nixos/nfs-share.nix +++ b/modules/linux/nixos/nfs-share.nix @@ -42,5 +42,12 @@ in { serviceConfig.Type = "oneshot"; serviceConfig.ExecStart = "${auto_mount}/bin/auto_mount"; }; + + # Nfs homeassistant + fileSystems."/mnt/homeassistant" = { + device = "192.168.0.5:/var/lib/homeassistant"; + fsType = "nfs"; + options = ["_netdev" "noauto" "x-systemd.automount" "x-systemd.mount-timeout=10" "timeo=14" "x-systemd.idle-timeout=600"]; + }; }; } diff --git a/modules/servers/tyr/nfs-server.nix b/modules/servers/tyr/nfs-server.nix index bba041e..1f161c7 100644 --- a/modules/servers/tyr/nfs-server.nix +++ b/modules/servers/tyr/nfs-server.nix @@ -3,6 +3,7 @@ enable = true; exports = '' /export/nfs 192.168.0.0/24(rw,sync,no_subtree_check) 172.16.0.0/24(rw,sync,no_subtree_check) + /var/lib/homeassistant 192.168.0.0/24(rw,sync,no_subtree_check) 172.16.0.0/24(rw,sync,no_subtree_check) ''; }; networking.firewall.allowedTCPPorts = [2049];