ci: rework flake integration
Now Use flake part and integrate a build system using nix package building and treefmt-nix as a flake-part module
This commit is contained in:
parent
440e26fb63
commit
ffea2b6857
8 changed files with 268 additions and 79 deletions
18
nix/treefmt.nix
Normal file
18
nix/treefmt.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
_: {
|
||||
config.perSystem =
|
||||
{
|
||||
config,
|
||||
inputs',
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
treefmt = {
|
||||
programs = {
|
||||
shfmt.enable = true;
|
||||
alejandra.enable = true;
|
||||
nixfmt.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue