manatee: Wait for ZFS mounts before starting sandboxed /mnt/media services

This commit is contained in:
Alexander Heldt committed 2026-11-02 10:55:35 +00:00
1 parent 248eb13b16
commit afe4f2db81
3 files changed
+19

No files matched your search

+6
View File
@@ -114,6 +114,12 @@ in
libraryId = "0PNE1NEPY6995";
};
# `libraryRoot` is bind mounted into the service's own mount namespace when it
# starts, so starting before the ZFS dataset is mounted leaves it with an empty folder
systemd.services.komga-book-manager.unitConfig.RequiresMountsFor = [
config.services.komga-book-manager.libraryRoot
];
services.komga-reading-stats = {
enable = true;
host = "0.0.0.0";
@@ -37,5 +37,11 @@ in
};
};
};
# `MusicFolder` is bind mounted into the service's own mount namespace when it
# starts, so starting before the ZFS dataset is mounted leaves it with an empty folder
systemd.services.navidrome = lib.mkIf navidromeEnabled {
unitConfig.RequiresMountsFor = [ config.services.navidrome.settings.MusicFolder ];
};
};
}
@@ -52,5 +52,12 @@ in
};
};
};
# Both paths are bind mounted into the service's own mount namespace when it
# starts, so starting before the ZFS dataset is mounted writes to the root disk
systemd.services.transmission.unitConfig.RequiresMountsFor = [
config.services.transmission.home
config.services.transmission.settings.download-dir
];
};
}