devtools/nix/repo/devShells.nix

74 lines
1.4 KiB
Nix
Raw Normal View History

2025-09-17 11:59:53 +02:00
{
inputs,
cell,
...
}: let
inherit (inputs) self pkgs devshell treefmt;
inherit (cell) soonix;
2025-09-17 11:59:53 +02:00
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
];
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";
2025-09-17 11:59:53 +02:00
}
{
name = "soonix";
stage_fixed = true;
run = "${soonix.shellHookFile}";
}
2025-09-17 11:59:53 +02:00
];
};
};
2025-12-19 15:04:26 +01:00
process-compose.config.processes = {
hello.command = "echo 'Hello World'";
pc = {
command = "echo 'From Process Compose'";
depends_on.hello.condition = "process_completed";
};
};
2025-09-17 11:59:53 +02:00
cocogitto.config.changelog = {
path = "CHANGELOG.md";
template = "remote";
remote = "gitlab.com";
repository = "devtools";
owner = "rensa-nix";
};
};
}