Now Use flake part and integrate a build system using nix package building and treefmt-nix as a flake-part module
18 lines
262 B
Nix
18 lines
262 B
Nix
_: {
|
|
config.perSystem =
|
|
{
|
|
config,
|
|
inputs',
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
treefmt = {
|
|
programs = {
|
|
shfmt.enable = true;
|
|
alejandra.enable = true;
|
|
nixfmt.enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|