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