mirror of
https://gitlab.com/rensa-nix/devtools.git
synced 2025-12-12 06:10:06 +01:00
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
inputs,
|
|
cell,
|
|
...
|
|
}: let
|
|
inherit (inputs) self pkgs devshell soonix treefmt;
|
|
inherit (cell) ci;
|
|
|
|
treefmtWrapper = treefmt.mkWrapper pkgs {
|
|
programs = {
|
|
alejandra.enable = true;
|
|
deadnix.enable = true;
|
|
statix.enable = true;
|
|
mdformat.enable = true;
|
|
};
|
|
};
|
|
in {
|
|
default = devshell.mkShell {
|
|
imports = [
|
|
"${self}/lib/modules"
|
|
soonix.devshellModule
|
|
];
|
|
soonix.hooks.ci = ci.soonix;
|
|
packages = [
|
|
pkgs.hello
|
|
treefmtWrapper
|
|
];
|
|
|
|
task = {
|
|
alias = ",";
|
|
tasks = {
|
|
"hello" = {
|
|
cmd = "echo world!";
|
|
};
|
|
};
|
|
};
|
|
|
|
lefthook.config = {
|
|
skip_output = ["meta" "execution_out"];
|
|
"pre-commit" = {
|
|
parallel = true;
|
|
jobs = [
|
|
{
|
|
name = "treefmt";
|
|
stage_fixed = true;
|
|
run = "${treefmtWrapper}/bin/treefmt";
|
|
env.TERM = "dumb";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
cocogitto.config.changelog = {
|
|
path = "CHANGELOG.md";
|
|
template = "remote";
|
|
remote = "gitlab.com";
|
|
repository = "devtools";
|
|
owner = "rensa-nix";
|
|
};
|
|
};
|
|
}
|