forked from extern/nix-config
meta: Add treefmt
This commit is contained in:
parent
797c0e8ec4
commit
5e65df256a
@ -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";
|
||||
|
8
treefmt.toml
Normal file
8
treefmt.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[formatter.crystal]
|
||||
command = "crystal"
|
||||
options = ["tool", "format"]
|
||||
includes = [ "*.cr" ]
|
||||
|
||||
[formatter.nix]
|
||||
command = "nixpkgs-fmt"
|
||||
includes = [ "*.nix" ]
|
Loading…
Reference in New Issue
Block a user