cluster/services/storage: serviceConfig.RequiresMountsFor -> unitConfig.RequiresMountsFor

This commit is contained in:
Max Headroom 2023-10-31 15:16:03 +01:00
parent 5d4c4a09fc
commit cec2fc0bc1

View file

@ -54,10 +54,12 @@ in
}; };
systemd.services.garage = { systemd.services.garage = {
unitConfig = {
RequiresMountsFor = [ cfg.settings.data_dir ];
};
serviceConfig = { serviceConfig = {
IPAddressDeny = [ "any" ]; IPAddressDeny = [ "any" ];
IPAddressAllow = [ "127.0.0.1/8" vars.meshNet.cidr ]; IPAddressAllow = [ "127.0.0.1/8" vars.meshNet.cidr ];
RequiresMountsFor = [ cfg.settings.data_dir ];
DynamicUser = false; DynamicUser = false;
PrivateTmp = true; PrivateTmp = true;
ProtectSystem = true; ProtectSystem = true;