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

@ -5,11 +5,13 @@ default:
@just --list
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:
nix flake update | spacer
push host target:
nixos-rebuild switch --flake {{FLAKE_HOME}}#{{host}} --target-host {{target}} | spacer
nixos-rebuild switch --flake {{ FLAKE_HOME }}#{{ host }} --target-host {{ target }} | spacer
alias s := switch
alias u := update

View file

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