add serviceMountDeps

This commit is contained in:
2025-03-22 20:46:55 -04:00
parent 9a45c808fd
commit f3fe629666
7 changed files with 46 additions and 0 deletions

View File

@@ -112,6 +112,12 @@
data_dir = services_dir + "/owntracks";
};
};
serviceMountDeps = serviceName: dirs: {
systemd.services.${serviceName} = {
unitConfig.RequiresMountsFor = dirs;
};
};
in
{
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
@@ -123,6 +129,7 @@
eth_interface
service_configs
inputs
serviceMountDeps
;
};
modules =