nixos/snapserver: restart the systemd service on failure

This commit is contained in:
Jordan Williams 2024-11-16 16:01:48 -06:00
parent f38cc637fd
commit 7031d0fdd0
No known key found for this signature in database
GPG Key ID: 9FB42B0E7F657D8C

View File

@ -297,6 +297,7 @@ in {
ProtectKernelTunables = true;
ProtectControlGroups = true;
ProtectKernelModules = true;
Restart = "on-failure";
RestrictAddressFamilies = "AF_INET AF_INET6 AF_UNIX AF_NETLINK";
RestrictNamespaces = true;
RuntimeDirectory = name;