feat: share home assistant config.

This commit is contained in:
CronyAkatsuki 2025-11-01 13:51:04 +01:00
parent e2a682e25b
commit be92c3c384
2 changed files with 8 additions and 0 deletions

View file

@ -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"];
};
};
}

View file

@ -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];