mirror of
https://gitlab.com/rensa-nix/utils.git
synced 2026-02-02 00:35:12 +01:00
chore: add devtools
This commit is contained in:
parent
14d663b720
commit
a9578d582c
8 changed files with 155 additions and 35 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# Generated by soonix, DO NOT EDIT
|
# Generated by soonix, DO NOT EDIT
|
||||||
include:
|
include:
|
||||||
- component: gitlab.com/TECHNOFAB/nix-gitlab-ci/nix-gitlab-ci@3.0.0-alpha.3
|
- component: gitlab.com/TECHNOFAB/nix-gitlab-ci/nix-gitlab-ci@3.1.2
|
||||||
inputs:
|
inputs:
|
||||||
version: 3.0.0-alpha.3
|
version: 3.1.2
|
||||||
|
|
|
||||||
25
.gitlab/renovate.json5
Normal file
25
.gitlab/renovate.json5
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"config:recommended"
|
||||||
|
],
|
||||||
|
"gitlabci": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"lockFileMaintenance": {
|
||||||
|
"branchTopic": "lock-file-maintenance-{{packageFile}}",
|
||||||
|
"commitMessageExtra": "({{packageFile}})",
|
||||||
|
"enabled": true,
|
||||||
|
"extends": [
|
||||||
|
"schedule:monthly"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"nix": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"postUpgradeTasks": {
|
||||||
|
"commands": [
|
||||||
|
"nix-portable nix run .#soonix:update"
|
||||||
|
],
|
||||||
|
"executionMode": "branch"
|
||||||
|
}
|
||||||
|
}
|
||||||
13
flake.lock
generated
13
flake.lock
generated
|
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759381078,
|
"lastModified": 1766902085,
|
||||||
"narHash": "sha256-gTrEEp5gEspIcCOx9PD8kMaF1iEmfBcTbO0Jag2QhQs=",
|
"narHash": "sha256-coBu0ONtFzlwwVBzmjacUQwj3G+lybcZ1oeNSQkgC0M=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "7df7ff7d8e00218376575f0acdcc5d66741351ee",
|
"rev": "c0b0e0fddf73fd517c3471e546c0df87a42d53f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -37,16 +37,17 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1758738378,
|
"lastModified": 1766497301,
|
||||||
"narHash": "sha256-NjzqdvQCDDdObEBH8x/vdhbdhrIB+N9E570uCdksGHY=",
|
"narHash": "sha256-W7WeOXMUZROMtbU1qQNWy/yai+k8gG09YACFQ7ImpsQ=",
|
||||||
"owner": "rensa-nix",
|
"owner": "rensa-nix",
|
||||||
"repo": "core",
|
"repo": "core",
|
||||||
"rev": "abe19f9f13aff41de2b63304545c87d193d19ef4",
|
"rev": "e08c48b5db1052bfb8b8dad764e05decc1af893e",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"owner": "rensa-nix",
|
"owner": "rensa-nix",
|
||||||
|
"ref": "v0.1.1",
|
||||||
"repo": "core",
|
"repo": "core",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
ren.url = "gitlab:rensa-nix/core?dir=lib";
|
ren.url = "gitlab:rensa-nix/core/v0.1.1?dir=lib";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
|
@ -22,12 +22,14 @@
|
||||||
(simple "devShells")
|
(simple "devShells")
|
||||||
(simple "docs")
|
(simple "docs")
|
||||||
(simple "ci")
|
(simple "ci")
|
||||||
|
(simple "soonix")
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
packages = ren.select self [
|
packages = ren.select self [
|
||||||
["repo" "docs"]
|
["repo" "docs"]
|
||||||
["repo" "ci" "packages"]
|
["repo" "ci" "packages"]
|
||||||
|
["repo" "soonix" "packages"]
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,22 +3,57 @@
|
||||||
cell,
|
cell,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (inputs) pkgs devshell treefmt soonix;
|
inherit (inputs) pkgs devshell treefmt devtools-lib;
|
||||||
inherit (cell) ci;
|
inherit (cell) soonix;
|
||||||
in {
|
treefmtWrapper = treefmt.mkWrapper pkgs {
|
||||||
default = devshell.mkShell {
|
|
||||||
imports = [soonix.devshellModule];
|
|
||||||
packages = [
|
|
||||||
pkgs.nil
|
|
||||||
(treefmt.mkWrapper pkgs {
|
|
||||||
programs = {
|
programs = {
|
||||||
alejandra.enable = true;
|
alejandra.enable = true;
|
||||||
statix.enable = true;
|
statix.enable = true;
|
||||||
deadnix.enable = true;
|
deadnix.enable = true;
|
||||||
mdformat.enable = true;
|
mdformat.enable = true;
|
||||||
};
|
};
|
||||||
})
|
};
|
||||||
|
in {
|
||||||
|
default = devshell.mkShell {
|
||||||
|
imports = [soonix.devshellModule devtools-lib.devshellModule];
|
||||||
|
packages = [
|
||||||
|
pkgs.nil
|
||||||
|
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 = "utils";
|
||||||
|
owner = "rensa-nix";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
44
nix/repo/flake.lock
generated
44
nix/repo/flake.lock
generated
|
|
@ -17,20 +17,37 @@
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"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": {
|
"nix-gitlab-ci-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1758804624,
|
"lastModified": 1765444672,
|
||||||
"narHash": "sha256-2AdxBYJKflgO7oZr1CfzyAxivDkGjvFmQpOuN6Yq128=",
|
"narHash": "sha256-B0cMjRs9P50ym9Le0VUcRN69Yy6tbV13MXq81tTTEus=",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
"repo": "nix-gitlab-ci",
|
"repo": "nix-gitlab-ci",
|
||||||
"rev": "d88ada2c41ae05b08d7ec644a4d222e93fff78ae",
|
"rev": "8f88a53b5479773cd626420362631bc1da99e677",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
"ref": "3.0.0-alpha.3",
|
"ref": "3.1.2",
|
||||||
"repo": "nix-gitlab-ci",
|
"repo": "nix-gitlab-ci",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
|
|
@ -38,11 +55,11 @@
|
||||||
"nixmkdocs": {
|
"nixmkdocs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1757055638,
|
"lastModified": 1766404754,
|
||||||
"narHash": "sha256-KHYSkEreFe4meXzSdEbknC/HwaQSNClQkc8vzHlAsMM=",
|
"narHash": "sha256-EjBe6x6BT8ckPirMWhSf1GfaFxORYxR/Uu71FvSAm60=",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
"repo": "nixmkdocs",
|
"repo": "nixmkdocs",
|
||||||
"rev": "7840a5febdbeaf2da90babf6c94b3d0929d2bf74",
|
"rev": "cfa9606eeeb9288e2799896d7d42b3d3860f9ccb",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -55,6 +72,7 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
|
"devtools-lib": "devtools-lib",
|
||||||
"nix-gitlab-ci-lib": "nix-gitlab-ci-lib",
|
"nix-gitlab-ci-lib": "nix-gitlab-ci-lib",
|
||||||
"nixmkdocs": "nixmkdocs",
|
"nixmkdocs": "nixmkdocs",
|
||||||
"soonix-lib": "soonix-lib",
|
"soonix-lib": "soonix-lib",
|
||||||
|
|
@ -64,11 +82,11 @@
|
||||||
"soonix-lib": {
|
"soonix-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1758615778,
|
"lastModified": 1766044966,
|
||||||
"narHash": "sha256-tggru+siXlLcLUjHtMojkJJWTS/8I3gm8nhnlz+qrTo=",
|
"narHash": "sha256-VB8PgA5QYmehFCGGz8YmlmuhCG43ab9rK9ufdKmfjao=",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
"repo": "soonix",
|
"repo": "soonix",
|
||||||
"rev": "e04b71c07413251dcb52036b4a51c6c7c0dca2ad",
|
"rev": "e9860d65a0123af948c1a2da65664a6d481efe05",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -81,11 +99,11 @@
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758728421,
|
"lastModified": 1767122417,
|
||||||
"narHash": "sha256-ySNJ008muQAds2JemiyrWYbwbG+V7S5wg3ZVKGHSFu8=",
|
"narHash": "sha256-yOt/FTB7oSEKQH9EZMFMeuldK1HGpQs2eAzdS9hNS/o=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "5eda4ee8121f97b218f7cc73f5172098d458f1d1",
|
"rev": "dec15f37015ac2e774c84d0952d57fcdf169b54d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,9 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixmkdocs.url = "gitlab:TECHNOFAB/nixmkdocs?dir=lib";
|
nixmkdocs.url = "gitlab:TECHNOFAB/nixmkdocs?dir=lib";
|
||||||
devshell.url = "gitlab:rensa-nix/devshell?dir=lib";
|
devshell.url = "gitlab:rensa-nix/devshell?dir=lib";
|
||||||
|
devtools-lib.url = "gitlab:rensa-nix/devtools?dir=lib";
|
||||||
soonix-lib.url = "gitlab:TECHNOFAB/soonix?dir=lib";
|
soonix-lib.url = "gitlab:TECHNOFAB/soonix?dir=lib";
|
||||||
nix-gitlab-ci-lib.url = "gitlab:TECHNOFAB/nix-gitlab-ci/3.0.0-alpha.3?dir=lib";
|
nix-gitlab-ci-lib.url = "gitlab:TECHNOFAB/nix-gitlab-ci/3.1.2?dir=lib";
|
||||||
treefmt-nix = {
|
treefmt-nix = {
|
||||||
url = "github:numtide/treefmt-nix";
|
url = "github:numtide/treefmt-nix";
|
||||||
flake = false;
|
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