mirror of
https://gitlab.com/rensa-nix/devtools.git
synced 2025-12-12 06:10:06 +01:00
chore: initial commit
This commit is contained in:
commit
db488d8f41
26 changed files with 1077 additions and 0 deletions
60
nix/repo/devShells.nix
Normal file
60
nix/repo/devShells.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
cocogitto.config.changelog = {
|
||||
path = "CHANGELOG.md";
|
||||
template = "remote";
|
||||
remote = "gitlab.com";
|
||||
repository = "devtools";
|
||||
owner = "rensa-nix";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue