modules/hyprspace: Auto-restart

This commit is contained in:
Max Headroom 2022-06-17 23:53:36 +02:00
parent 67649a5cb7
commit bf863cbc49

View file

@ -51,6 +51,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";
};