refactor(flake): update, add treefmt, cleanup and import lib directly

This commit is contained in:
technofab 2024-11-24 17:20:35 +01:00
parent 5199b67122
commit 649955cc29
3 changed files with 172 additions and 628 deletions

16
ci.nix
View file

@ -1,22 +1,9 @@
{
pkgs,
inputs',
...
}: {
ci = {
stages = ["check" "upload"];
default = {
retry = {
max = 2;
when = "runner_system_failure";
};
};
jobs = {
"check" = {
stage = "check";
before_script = [
"nix flake prefetch path:lib"
];
script = [
"nix flake check --impure"
];
@ -27,9 +14,6 @@
{"if" = ''$CI_COMMIT_REF_NAME == "main"'';}
];
variables.AUTH_HEADER = "JOB-TOKEN: \${CI_JOB_TOKEN}";
before_script = [
"nix flake prefetch path:lib"
];
script = [
"nix run .#upload --impure"
];