hosts/legion/nas: enable restic, make services depend on zfs mount

This commit is contained in:
Nikodem Rabuliński 2024-07-19 22:31:18 +02:00
parent fce605589e
commit a1d60a6107
2 changed files with 25 additions and 2 deletions

View file

@ -37,11 +37,14 @@
systemd.mounts = [
{
type = "none";
options = "bind,nofail";
options = "bind";
what = "/media/data";
where = "/export/yotta-data";
requires = [ "zfs-mount.service" ];
after = [ "zfs-mount.service" ];
wantedBy = [ "multi-user.target" ];
before = ["nfs-server.service"];
requiredBy = ["nfs-server.service"];
}
];