2023-03-02 09:49:44 +00:00
|
|
|
{ pkgs, pkgsLib, coricamuLib, config, inputs, ... }:
|
2022-07-30 14:30:57 +00:00
|
|
|
|
2023-03-02 09:49:44 +00:00
|
|
|
with coricamuLib;
|
|
|
|
|
|
|
|
rec {
|
2022-07-30 14:30:57 +00:00
|
|
|
baseUrl = "https://danth.github.io/stylix/";
|
|
|
|
siteTitle = "Stylix";
|
|
|
|
language = "en-gb";
|
|
|
|
|
2023-03-02 09:49:44 +00:00
|
|
|
header = makeProjectHeader {
|
|
|
|
title = siteTitle;
|
|
|
|
inherit (config) pages;
|
|
|
|
repository = "https://github.com/danth/stylix";
|
|
|
|
};
|
2023-02-04 12:07:06 +00:00
|
|
|
|
2023-03-02 09:49:44 +00:00
|
|
|
pages = makeProjectPages ../. ++ [
|
2022-07-30 14:30:57 +00:00
|
|
|
{
|
|
|
|
path = "options.html";
|
2023-02-04 12:07:06 +00:00
|
|
|
title = "NixOS options";
|
2022-07-30 14:30:57 +00:00
|
|
|
|
|
|
|
body.docbook =
|
|
|
|
let
|
2023-02-04 12:07:06 +00:00
|
|
|
configuration = pkgsLib.nixosSystem {
|
2022-07-30 14:30:57 +00:00
|
|
|
inherit (pkgs) system;
|
|
|
|
modules = [
|
|
|
|
inputs.self.nixosModules.stylix
|
2023-02-04 12:07:06 +00:00
|
|
|
./settings.nix
|
|
|
|
{ _module.check = false; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
2023-02-14 14:46:41 +00:00
|
|
|
builtins.readFile ./nixos_header.xml +
|
2023-03-02 09:49:44 +00:00
|
|
|
makeOptionsDocBook {
|
2023-02-04 12:07:06 +00:00
|
|
|
inherit (configuration) options;
|
|
|
|
customFilter = option: builtins.elemAt option.loc 0 == "stylix";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
path = "options-hm.html";
|
|
|
|
title = "Home Manager options";
|
|
|
|
|
|
|
|
body.docbook =
|
|
|
|
let
|
|
|
|
configuration = inputs.home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
modules = [
|
|
|
|
inputs.self.homeManagerModules.stylix
|
|
|
|
./settings.nix
|
|
|
|
{
|
|
|
|
home = {
|
|
|
|
homeDirectory = "/home/docs";
|
|
|
|
stateVersion = "22.11";
|
|
|
|
username = "docs";
|
|
|
|
};
|
|
|
|
}
|
2022-07-30 14:30:57 +00:00
|
|
|
];
|
2023-02-04 12:07:06 +00:00
|
|
|
check = false;
|
2022-07-30 14:30:57 +00:00
|
|
|
};
|
|
|
|
in
|
2023-02-14 14:46:41 +00:00
|
|
|
builtins.readFile ./hm_header.xml +
|
2023-03-02 09:49:44 +00:00
|
|
|
makeOptionsDocBook {
|
2023-02-04 12:07:06 +00:00
|
|
|
inherit (configuration) options;
|
2022-07-31 13:35:18 +00:00
|
|
|
customFilter = option: builtins.elemAt option.loc 0 == "stylix";
|
2022-07-30 14:30:57 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|