1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

nixos/blocky: restart on failure

This commit is contained in:
Bernardo Meurer 2023-01-23 11:45:56 -05:00
parent fbf1189f9d
commit 271dbd928e
No known key found for this signature in database

View file

@ -31,6 +31,7 @@ in
serviceConfig = {
DynamicUser = true;
ExecStart = "${pkgs.blocky}/bin/blocky --config ${configFile}";
Restart = "on-failure";
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ];