Fix phases switch (allegedly)

This commit is contained in:
Geoffrey Frogeye 2025-04-21 20:47:28 +02:00
parent 6989ca2721
commit f48f0f798c
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -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; [