forked from pub-solar/os
lib: drop jobs output, prefer checks and packages
With mkFlakeDoc in packages there is no need for jobs. And I think anything that could go in jobs really should go in checks or packages. If something needs to be tested - checks, if something needs to be built - packages. jobs is not multi-arch and is redundant to build/test things with when official flake outputs exist
This commit is contained in:
parent
1cd4ed136a
commit
a53aa8b7eb
|
@ -81,7 +81,7 @@
|
||||||
"utils": "utils_2"
|
"utils": "utils_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-eZJ8p2u56dkLPxF7GiQLbQ6YRKHP6DoOM52G/p+M/3w=",
|
"narHash": "sha256-7Y6SqdLWr/g8tqNjqakRbS0KVIA/yzRm3D/RnoTAuzE=",
|
||||||
"path": "./lib",
|
"path": "./lib",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,13 +54,9 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
jobs = import ./jobs { inherit nixpkgs; lib = nixpkgs.lib // lib; };
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
inherit jobs;
|
|
||||||
|
|
||||||
lib = utils.lib // {
|
lib = utils.lib // {
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
mkFlake;
|
mkFlake;
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{ nixpkgs, lib, system ? "x86_64-linux" }:
|
|
||||||
let
|
|
||||||
pkgs = import nixpkgs { inherit system; overlays = [ ]; config = { }; };
|
|
||||||
in
|
|
||||||
{
|
|
||||||
mkFlakeDoc = import ./mkFlakeDoc.nix { inherit pkgs lib; };
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
singleDoc = name: value: ''
|
|
||||||
## ${name}
|
|
||||||
${value.description}
|
|
||||||
${lib.optionalString (value ? type) ''
|
|
||||||
*_Type_*:
|
|
||||||
${value.type}
|
|
||||||
''}
|
|
||||||
${lib.optionalString (value ? default) ''
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
${builtins.toJSON value.default}
|
|
||||||
```
|
|
||||||
''}
|
|
||||||
${lib.optionalString (value ? example) ''
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
${value.example}
|
|
||||||
```
|
|
||||||
''}
|
|
||||||
'';
|
|
||||||
|
|
||||||
options = (
|
|
||||||
lib.mkFlake.evalArgs { nixos = "nixos"; args = { }; }
|
|
||||||
).options;
|
|
||||||
|
|
||||||
processedOptions = (pkgs.nixosOptionsDoc { inherit options; }).optionsNix;
|
|
||||||
|
|
||||||
fullDoc = lib.concatStringsSep "" (lib.mapAttrsToList singleDoc processedOptions);
|
|
||||||
in
|
|
||||||
pkgs.writeText "devosOptions.md" fullDoc
|
|
||||||
|
|
Loading…
Reference in a new issue