use nom beautify the output of nix flake update

This commit is contained in:
ulic-youthlic 2025-02-01 19:12:48 +08:00
parent 24a2a81998
commit c996aab2b6
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -8,7 +8,7 @@ switch specialisation=DEFAULT_SPECIALISATION:
nh os switch {{ FLAKE_HOME }} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }} nh os switch {{ FLAKE_HOME }} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }}
update: update:
nix flake update | spacer nix flake update --log-format internal-json 2>&1 | nom --json
deploy host: deploy host:
deploy {{ FLAKE_HOME }}#{{ host }} deploy {{ FLAKE_HOME }}#{{ host }}