From fd3d1a834bb17fc76c89175e8aa690bbf21f8b04 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Thu, 5 May 2022 22:31:56 +0200 Subject: [PATCH] illum: Restart service on failure If there is a fatal error and illum exits, it should be safe to restart it. --- nixos/modules/services/hardware/illum.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/hardware/illum.nix b/nixos/modules/services/hardware/illum.nix index ff73c99a6537..7f7a85000234 100644 --- a/nixos/modules/services/hardware/illum.nix +++ b/nixos/modules/services/hardware/illum.nix @@ -28,6 +28,7 @@ in { description = "Backlight Adjustment Service"; wantedBy = [ "multi-user.target" ]; serviceConfig.ExecStart = "${pkgs.illum}/bin/illum-d"; + serviceConfig.Restart = "on-failure"; }; };