#!/bin/sh set -eux # shellcheck disable=2094 nixfmt < default.nix | diff - default.nix || { echo 'The file default.nix is unformatted. To fix it, run:' echo ' nixfmt default.nix' exit 1 }