add just formatter for helix and format Justfile

This commit is contained in:
ulic-youthlic 2025-01-25 16:59:16 +08:00
parent fcaa7b1d1c
commit 40f486c373
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 13 additions and 2 deletions

View file

@ -6,8 +6,10 @@ default:
switch specialisation=DEFAULT_SPECIALISATION:
nh os switch {{ FLAKE_HOME }} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }}
update:
nix flake update | spacer
push host target:
nixos-rebuild switch --flake {{ FLAKE_HOME }}#{{ host }} --target-host {{ target }} | spacer

View file

@ -48,6 +48,15 @@
};
};
language = [
{
name = "just";
formatter = {
command = "just";
args = [
"--dump"
];
};
}
{
name = "nix";
formatter = {