17 lines
560 B
Nix
Executable File
17 lines
560 B
Nix
Executable File
_: {
|
|
perSystem =
|
|
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
# Use nixfmt-tree (a treefmt wrapper) rather than bare nixfmt: bare
|
|
# `nix fmt` passes no file args, so nixfmt reads empty stdin and errors,
|
|
# and `nix fmt .` walks into symlinked flake-input store paths. treefmt
|
|
# walks only git-tracked files, respects .gitignore, and runs nixfmt on
|
|
# just the .nix files — so build artifacts (pkgs/hc4-oled/target) and
|
|
# store symlinks (pkgs/clan-cli/clan_lib/select) are skipped.
|
|
formatter = pkgs.nixfmt-tree;
|
|
};
|
|
}
|