Skip to content

Commit

Permalink
add formatting script
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jul 26, 2019
1 parent e75df1a commit 31fa5bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions format.sh
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
nix-shell \
--pure \
-p 'import (fetchTarball https://github.com/serokell/nixfmt/archive/e4f31f45799554ff378370256a24f606a3025b0a.tar.gz) {}' \
--run 'find . -name "*.nix" -not -ipath "*home-manager*" | xargs nixfmt --width 120'

0 comments on commit 31fa5bb

Please sign in to comment.