mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2025-12-11 22:00:08 +01:00
chore: update nixmkdocs, add treefmt
This commit is contained in:
parent
9cb2d2bef6
commit
266080b197
4 changed files with 45 additions and 36 deletions
|
|
@ -1,9 +1,17 @@
|
||||||
{inputs, ...}: let
|
{inputs, ...}: let
|
||||||
inherit (inputs) pkgs devshell;
|
inherit (inputs) pkgs devshell treefmt;
|
||||||
in {
|
in {
|
||||||
default = devshell.mkShell {
|
default = devshell.mkShell {
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.alejandra
|
pkgs.nil
|
||||||
|
(treefmt.mkWrapper pkgs {
|
||||||
|
programs = {
|
||||||
|
alejandra.enable = true;
|
||||||
|
statix.enable = true;
|
||||||
|
deadnix.enable = true;
|
||||||
|
mdformat.enable = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
];
|
];
|
||||||
env."HELLO".value = "world!";
|
env."HELLO".value = "world!";
|
||||||
enterShellCommands.test = {
|
enterShellCommands.test = {
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
{inputs, ...}: let
|
{inputs, ...}: let
|
||||||
inherit (inputs) pkgs devshell doclib;
|
inherit (inputs) pkgs devshell doclib;
|
||||||
|
|
||||||
roots = [
|
|
||||||
{
|
|
||||||
url = "https://gitlab.com/rensa-nix/devshell/-/blob/main/lib";
|
|
||||||
path = "${inputs.self}/lib";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
optionsDoc = doclib.mkOptionDocs {
|
optionsDoc = doclib.mkOptionDocs {
|
||||||
module = devshell.modules;
|
module = devshell.modules;
|
||||||
inherit roots;
|
roots = [
|
||||||
|
{
|
||||||
|
url = "https://gitlab.com/rensa-nix/devshell/-/blob/main/lib";
|
||||||
|
path = "${inputs.self}/lib";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
optionsDocs = pkgs.runCommand "options-docs" {} ''
|
optionsDocs = pkgs.runCommand "options-docs" {} ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
|
@ -27,9 +26,9 @@ in
|
||||||
accent = "blue";
|
accent = "blue";
|
||||||
};
|
};
|
||||||
umami = {
|
umami = {
|
||||||
enable = false;
|
enable = true;
|
||||||
src = "https://analytics.tf/umami";
|
src = "https://analytics.tf/umami";
|
||||||
siteId = "";
|
siteId = "8f6d1692-a0e9-4a99-85cc-22fb38e1c82b";
|
||||||
domains = ["devshell.rensa.projects.tf"];
|
domains = ["devshell.rensa.projects.tf"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
41
nix/repo/flake.lock
generated
41
nix/repo/flake.lock
generated
|
|
@ -1,28 +1,13 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"mkdocs-material-umami": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1745840856,
|
|
||||||
"narHash": "sha256-1Ad1JTMQMP6YsoIKAA+SBCE15qWrYkGue9/lXOLnu9I=",
|
|
||||||
"owner": "technofab",
|
|
||||||
"repo": "mkdocs-material-umami",
|
|
||||||
"rev": "3ac9b194450f6b779c37b8d16fec640198e5cd0a",
|
|
||||||
"type": "gitlab"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "technofab",
|
|
||||||
"repo": "mkdocs-material-umami",
|
|
||||||
"type": "gitlab"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixmkdocs": {
|
"nixmkdocs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1755783537,
|
"lastModified": 1755785622,
|
||||||
"narHash": "sha256-78lWSC3UzkpWYsnyncqbrE37gEIWLzejOeDyoBb6h5o=",
|
"narHash": "sha256-xBb9PCkszmrWSEqUiPC7oBJABm1thF572S5QHtloZ+M=",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
"repo": "nixmkdocs",
|
"repo": "nixmkdocs",
|
||||||
"rev": "4fd5a351c54e005c4e8df7e23a8e4eec9d3b8cd1",
|
"rev": "61da605a9bff12f66c4b743f43aea59ca200f533",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -51,9 +36,25 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"mkdocs-material-umami": "mkdocs-material-umami",
|
|
||||||
"nixmkdocs": "nixmkdocs",
|
"nixmkdocs": "nixmkdocs",
|
||||||
"nixtest-lib": "nixtest-lib"
|
"nixtest-lib": "nixtest-lib",
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1756662192,
|
||||||
|
"narHash": "sha256-F1oFfV51AE259I85av+MAia221XwMHCOtZCMcZLK2Jk=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "1aabc6c05ccbcbf4a635fb7a90400e44282f61c4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,17 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixtest-lib.url = "gitlab:TECHNOFAB/nixtest?dir=lib";
|
nixtest-lib.url = "gitlab:TECHNOFAB/nixtest?dir=lib";
|
||||||
nixmkdocs.url = "gitlab:TECHNOFAB/nixmkdocs?dir=lib";
|
nixmkdocs.url = "gitlab:TECHNOFAB/nixmkdocs?dir=lib";
|
||||||
mkdocs-material-umami.url = "gitlab:technofab/mkdocs-material-umami";
|
treefmt-nix = {
|
||||||
|
url = "github:numtide/treefmt-nix";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
outputs = i:
|
outputs = i:
|
||||||
i
|
i
|
||||||
// {
|
// {
|
||||||
ntlib = i.nixtest-lib.lib {inherit (i.parent) pkgs;};
|
ntlib = i.nixtest-lib.lib {inherit (i.parent) pkgs;};
|
||||||
doclib = i.nixmkdocs.lib {
|
doclib = i.nixmkdocs.lib {inherit (i.parent) pkgs;};
|
||||||
inherit (i.parent) pkgs;
|
|
||||||
inherit (i.parent.pkgs) lib;
|
|
||||||
};
|
|
||||||
devshell = import "${i.parent.self}/lib" {inherit (i.parent) pkgs;};
|
devshell = import "${i.parent.self}/lib" {inherit (i.parent) pkgs;};
|
||||||
|
treefmt = import i.treefmt-nix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue