feat: share home assistant config.
This commit is contained in:
parent
e2a682e25b
commit
be92c3c384
2 changed files with 8 additions and 0 deletions
|
|
@ -42,5 +42,12 @@ in {
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
serviceConfig.ExecStart = "${auto_mount}/bin/auto_mount";
|
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"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
exports = ''
|
exports = ''
|
||||||
/export/nfs 192.168.0.0/24(rw,sync,no_subtree_check) 172.16.0.0/24(rw,sync,no_subtree_check)
|
/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];
|
networking.firewall.allowedTCPPorts = [2049];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue