diff --git a/modules/fish-starship/default.nix b/modules/fish-starship/default.nix index 3525468..f66777f 100644 --- a/modules/fish-starship/default.nix +++ b/modules/fish-starship/default.nix @@ -63,6 +63,7 @@ let VARIABLES = import ../../src/variables.nix; in { vm = /* fish */ ''cd ~/nix-config && crystal spec tests/main.cr --progress --verbose --tag local && nixos-rebuild build-vm --flake . --verbose && ./result/bin/run-${VARIABLES.hostname}-vm && trash put result ${VARIABLES.hostname}.qcow2''; sw = "cd ~/nix-config && crystal spec tests/main.cr --progress --verbose --tag local && sudo nixos-rebuild switch --flake . --verbose"; st = "cd ~/nix-config && crystal spec tests/main.cr --progress --verbose --tag local"; + tf = "treefmt"; c = "tput clear"; # Clear the terminal completely e = "exit"; diff --git a/treefmt.toml b/treefmt.toml new file mode 100644 index 0000000..a42c052 --- /dev/null +++ b/treefmt.toml @@ -0,0 +1,8 @@ +[formatter.crystal] +command = "crystal" +options = ["tool", "format"] +includes = [ "*.cr" ] + +[formatter.nix] +command = "nixpkgs-fmt" +includes = [ "*.nix" ]