From cfabdae30898b217cd3c4e770851cf20c9d525a2 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 13 Apr 2025 22:54:36 +0200 Subject: blankscreen: fix service scheduling --- config/hardware/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/config/hardware/default.nix b/config/hardware/default.nix index 5003cd0..06555f7 100644 --- a/config/hardware/default.nix +++ b/config/hardware/default.nix @@ -32,12 +32,16 @@ in { }; environment.shellAliases = {inherit blankscreen;}; - systemd.services.blankscreen = { - description = "Shut down screen"; - path = [pkgs.util-linux]; - script = '' - ${blankscreen} force - ''; - wantedBy = ["default.target"]; + systemd = { + suppressedSystemUnits = ["systemd-backlight@.service"]; + services.blankscreen = { + description = "Shut down screen"; + path = [pkgs.util-linux]; + script = '' + ${blankscreen} force + ''; + wantedBy = ["default.target"]; + after = ["multi-user.target"]; + }; }; } -- cgit v1.2.3