1
Fork 0

systemd service: fix serviceConfig

This commit is contained in:
Motiejus Jakštys 2024-01-16 22:38:17 +02:00
parent a68b015209
commit 5c701b6878
1 changed files with 4 additions and 3 deletions

View File

@ -36,7 +36,7 @@ e11sync-backend: {
E11SYNC_SECRET_KEY_PATH = "/run/credentials/secret_key";
};
wantedBy = ["multi-user.target"];
serviceConfig =
serviceConfig = lib.mkMerge [
{
Type = "notify";
NotifyAccess = "all";
@ -53,9 +53,10 @@ e11sync-backend: {
ProtectKernelTunables = true;
ProtectControlGroups = true;
}
// lib.mkIf cfg.migrateOnStart {
(lib.mkIf cfg.migrateOnStart {
ExecStartPre = "${pkg-backend}/bin/e11sync migrate";
};
})
];
};
};
};