From f48f0f798c6066e67d8696dabb37f80e6a8557f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Mon, 21 Apr 2025 20:47:28 +0200 Subject: [PATCH] Fix phases switch (allegedly) --- hm/brightness/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hm/brightness/default.nix b/hm/brightness/default.nix index cf6fbd0..3ae518f 100644 --- a/hm/brightness/default.nix +++ b/hm/brightness/default.nix @@ -34,10 +34,15 @@ in if [ -x "$switch" ] then sudo "$switch" test & - sudo "$switch" boot & fi ${builtins.getAttr phase.command config.frogeye.desktop.phasesCommands} wait + # Boot does not have to be set immediately and can result to lock issues with test, + # so it is run at the end + if [ -x "$switch" ] + then + sudo "$switch" boot + fi '') ) phases) ++ (with pkgs; [