modules/hyprspace: Auto-restart

This commit is contained in:
Max Headroom 2022-06-17 23:53:36 +02:00
parent db9b4cfe68
commit bf9af1c5d8

View file

@ -46,6 +46,8 @@ in {
'';
environment.HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
serviceConfig = {
Restart = "on-failure";
RestartSec = "5s";
ExecStart = "${hyprspace}/bin/hyprspace up hyprspace -f -c ${runConfig}";
ExecStop = "${hyprspace}/bin/hyprspace down hyprspace";
IPAddressDeny = [