mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2026-02-02 07:15:09 +01:00
chore: add devtools
This commit is contained in:
parent
7d0c4bc78d
commit
a9d35d750f
11 changed files with 146 additions and 28 deletions
|
|
@ -3,22 +3,57 @@
|
|||
cell,
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) pkgs devshell treefmt soonix;
|
||||
inherit (cell) ci;
|
||||
inherit (inputs) pkgs devshell treefmt devtools-lib;
|
||||
inherit (cell) soonix;
|
||||
treefmtWrapper = treefmt.mkWrapper pkgs {
|
||||
programs = {
|
||||
alejandra.enable = true;
|
||||
deadnix.enable = true;
|
||||
mdformat.enable = true;
|
||||
};
|
||||
};
|
||||
in {
|
||||
default = devshell.mkShell {
|
||||
imports = [soonix.devshellModule];
|
||||
imports = [soonix.devshellModule devtools-lib.devshellModule];
|
||||
packages = [
|
||||
pkgs.nil
|
||||
(treefmt.mkWrapper pkgs {
|
||||
programs = {
|
||||
alejandra.enable = true;
|
||||
deadnix.enable = true;
|
||||
mdformat.enable = true;
|
||||
};
|
||||
})
|
||||
treefmtWrapper
|
||||
];
|
||||
soonix.hooks.ci = ci.soonix;
|
||||
lefthook.config = {
|
||||
"pre-commit" = {
|
||||
parallel = true;
|
||||
jobs = [
|
||||
{
|
||||
name = "treefmt";
|
||||
stage_fixed = true;
|
||||
run = "${treefmtWrapper}/bin/treefmt";
|
||||
env.TERM = "dumb";
|
||||
}
|
||||
{
|
||||
name = "soonix";
|
||||
stage_fixed = true;
|
||||
run = "${soonix.packages."soonix:update"}/bin/soonix:update";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
cocogitto.config = {
|
||||
tag_prefix = "v";
|
||||
ignore_merge_commits = true;
|
||||
changelog = {
|
||||
authors = [
|
||||
{
|
||||
username = "TECHNOFAB";
|
||||
signature = "technofab";
|
||||
}
|
||||
];
|
||||
path = "CHANGELOG.md";
|
||||
template = "remote";
|
||||
remote = "gitlab.com";
|
||||
repository = "devshell";
|
||||
owner = "rensa-nix";
|
||||
};
|
||||
};
|
||||
meta = {
|
||||
enableMenu = true;
|
||||
showMenu = "always";
|
||||
|
|
|
|||
26
nix/repo/flake.lock
generated
26
nix/repo/flake.lock
generated
|
|
@ -1,19 +1,36 @@
|
|||
{
|
||||
"nodes": {
|
||||
"devtools-lib": {
|
||||
"locked": {
|
||||
"dir": "lib",
|
||||
"lastModified": 1767214272,
|
||||
"narHash": "sha256-gvW7flZ60xdv3Z3Ksec5jcRjW2sqRHsGoJdwsNWQVPk=",
|
||||
"owner": "rensa-nix",
|
||||
"repo": "devtools",
|
||||
"rev": "f40e59c32c48cdbf4cbc621c2f0f11e7bb80dbd3",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"dir": "lib",
|
||||
"owner": "rensa-nix",
|
||||
"repo": "devtools",
|
||||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
"nix-gitlab-ci-lib": {
|
||||
"locked": {
|
||||
"dir": "lib",
|
||||
"lastModified": 1756974596,
|
||||
"narHash": "sha256-KxQj76sUqvPNtrqzNWMZeOWqTitc0aFCYj7UZzToiEA=",
|
||||
"lastModified": 1765444672,
|
||||
"narHash": "sha256-B0cMjRs9P50ym9Le0VUcRN69Yy6tbV13MXq81tTTEus=",
|
||||
"owner": "TECHNOFAB",
|
||||
"repo": "nix-gitlab-ci",
|
||||
"rev": "00cf5b83c6c46698fba12a54b9cc15c6d4e5a4dd",
|
||||
"rev": "8f88a53b5479773cd626420362631bc1da99e677",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"dir": "lib",
|
||||
"owner": "TECHNOFAB",
|
||||
"ref": "3.0.0-alpha.2",
|
||||
"ref": "3.1.2",
|
||||
"repo": "nix-gitlab-ci",
|
||||
"type": "gitlab"
|
||||
}
|
||||
|
|
@ -54,6 +71,7 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"devtools-lib": "devtools-lib",
|
||||
"nix-gitlab-ci-lib": "nix-gitlab-ci-lib",
|
||||
"nixmkdocs": "nixmkdocs",
|
||||
"nixtest-lib": "nixtest-lib",
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@
|
|||
nixtest-lib.url = "gitlab:TECHNOFAB/nixtest?dir=lib";
|
||||
nixmkdocs.url = "gitlab:TECHNOFAB/nixmkdocs?dir=lib";
|
||||
soonix-lib.url = "gitlab:TECHNOFAB/soonix?dir=lib";
|
||||
nix-gitlab-ci-lib.url = "gitlab:TECHNOFAB/nix-gitlab-ci/3.0.0-alpha.2?dir=lib";
|
||||
nix-gitlab-ci-lib.url = "gitlab:TECHNOFAB/nix-gitlab-ci/3.1.2?dir=lib";
|
||||
devtools-lib.url = "gitlab:rensa-nix/devtools/v0.1.0?dir=lib";
|
||||
treefmt-nix = {
|
||||
url = "github:numtide/treefmt-nix";
|
||||
flake = false;
|
||||
|
|
|
|||
38
nix/repo/soonix.nix
Normal file
38
nix/repo/soonix.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
inputs,
|
||||
cell,
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) soonix;
|
||||
inherit (cell) ci;
|
||||
in
|
||||
(soonix.make {
|
||||
hooks = {
|
||||
ci = ci.soonix;
|
||||
renovate = {
|
||||
output = ".gitlab/renovate.json5";
|
||||
data = {
|
||||
extends = ["config:recommended"];
|
||||
postUpgradeTasks = {
|
||||
commands = [
|
||||
"nix-portable nix run .#soonix:update"
|
||||
];
|
||||
executionMode = "branch";
|
||||
};
|
||||
lockFileMaintenance = {
|
||||
enabled = true;
|
||||
extends = ["schedule:monthly"];
|
||||
branchTopic = "lock-file-maintenance-{{packageFile}}";
|
||||
commitMessageExtra = "({{packageFile}})";
|
||||
};
|
||||
nix.enabled = true;
|
||||
gitlabci.enabled = false;
|
||||
};
|
||||
hook = {
|
||||
mode = "copy";
|
||||
gitignore = false;
|
||||
};
|
||||
opts.format = "json";
|
||||
};
|
||||
};
|
||||
}).config
|
||||
Loading…
Add table
Add a link
Reference in a new issue