chore: pin flake input versions, use rensa autodiscovery, etc.

This commit is contained in:
technofab 2026-04-16 12:52:24 +02:00
parent a48eecbdc5
commit 5f0c714d80
Signed by: technofab
SSH key fingerprint: SHA256:bV4h88OqS/AxjbPn66uUdvK9JsgIW4tv3vwJQ8tpMqQ
5 changed files with 31 additions and 23 deletions

View file

@ -6,12 +6,22 @@
inherit (inputs) pkgs devshell treefmt devtools-lib;
inherit (cell) soonix;
treefmtWrapper = treefmt.mkWrapper pkgs {
projectRootFile = "flake.nix";
programs = {
alejandra.enable = true;
statix.enable = true;
deadnix.enable = true;
mdformat.enable = true;
};
settings.formatter.mdformat = {
excludes = ["CHANGELOG.md"];
command = let
pkg = pkgs.python3.withPackages (p: [
p.mdformat
p.mdformat-mkdocs
]);
in "${pkg}/bin/mdformat";
};
};
in {
default = devshell.mkShell {
@ -27,13 +37,13 @@ in {
{
name = "treefmt";
stage_fixed = true;
run = "${treefmtWrapper}/bin/treefmt";
run = "${treefmtWrapper}/bin/treefmt; #{files}";
env.TERM = "dumb";
}
{
name = "soonix";
stage_fixed = true;
run = "${soonix.packages."soonix:update"}/bin/soonix:update";
run = "nix run .#soonix:update; #{files}";
}
];
};