feat: test

This commit is contained in:
Nick 2025-06-08 22:40:38 -05:00
parent d662409859
commit bddc3fb8b8

View file

@ -34,24 +34,32 @@ in
};
};
fileSystems = {
"/var/lib/${service.name}" = {
device = service.paths.path0;
fsType = "none";
options = [ "bind" ];
depends = [ ceres.storage0.mount ];
fileSystems =
let
settings = {
fsType = "none";
options = [
"bind"
];
depends = [
ceres.storage0.mount
];
};
in
{
"/var/lib/${service.name}" = {
device = service.paths.path0;
} // settings;
"/var/cache/${service.name}" = {
device = "${service.paths.path1}";
} // settings;
};
"/var/cache/${service.name}" = {
device = service.paths.path1;
fsType = "none";
options = [ "bind" ];
depends = [ ceres.storage0.mount ];
};
};
systemd.tmpfiles.rules = [
"Z ${service.paths.path0} 0755 ${user0} ${service.name} -"
"Z ${service.paths.path1} 0755 ${user0} ${service.name} -"
"d ${service.paths.path0} 0755 ${user0} ${service.name} -"
"d ${service.paths.path1} 0755 ${user0} ${service.name} -"
"Z ${service.paths.path0} - ${user0} ${service.name} -"
"Z ${service.paths.path1} - ${user0} ${service.name} -"
];
networking = {