2023-02-13 20:09:56 +00:00
|
|
|
{ pkgs, pkgsLib, coricamuLib, inputs, ... }:
|
2022-07-30 14:30:57 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
baseUrl = "https://danth.github.io/stylix/";
|
|
|
|
siteTitle = "Stylix";
|
|
|
|
language = "en-gb";
|
|
|
|
|
|
|
|
header.html = ''
|
|
|
|
<h1>Stylix</h1>
|
|
|
|
<nav>
|
|
|
|
<a href="">Home</a>
|
2023-02-04 12:07:06 +00:00
|
|
|
<a href="options.html">NixOS options</a>
|
|
|
|
<a href="options-hm.html">Home Manager options</a>
|
2022-07-30 14:30:57 +00:00
|
|
|
<a href="https://github.com/danth/stylix">GitHub repository</a>
|
|
|
|
</nav>
|
|
|
|
'';
|
|
|
|
|
|
|
|
pages = [
|
|
|
|
{
|
|
|
|
path = "index.html";
|
|
|
|
title = "Stylix";
|
|
|
|
|
|
|
|
body.markdownFile = pkgs.runCommand "index.md" {} ''
|
|
|
|
# Remove the title line
|
|
|
|
tail -n+2 ${../README.md} >$out
|
|
|
|
'';
|
|
|
|
}
|
2023-02-04 12:07:06 +00:00
|
|
|
|
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
|
|
|
|
coricamuLib.makeOptionsDocBook {
|
|
|
|
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
|
|
|
|
coricamuLib.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
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|