labs/format.sh

5 lines
174 B
Bash
Raw Normal View History

2024-06-22 17:56:18 +00:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -I "nixpkgs=https://github.com/nixos/nixpkgs/archive/nixos-24.05.tar.gz" -p nixfmt-rfc-style
nixfmt ${1:-"--verify"} ./**/*.nix