1
0

pkgs/nixfiles-docs: Init docs

This commit is contained in:
2025-11-22 22:39:27 +01:00
parent 7c8832c1cd
commit 7ed74d376b
5 changed files with 41 additions and 0 deletions

14
docs/mkdocs.yml Normal file
View File

@@ -0,0 +1,14 @@
docs_dir: pages
site_name: clerie's nixfiles
repo_url: https://git.clerie.de/clerie/nixfiles
repo_name: clerie/nixfiles
edit_uri: src/branch/master/docs/pages/
theme:
name: material
features:
- content.action.edit
- navigation.indexes
- navigation.tabs
palette:
primary: deep purple

View File

@@ -0,0 +1 @@
# Options

1
docs/pages/index.md Normal file
View File

@@ -0,0 +1 @@
# Home

View File

@@ -0,0 +1,24 @@
{
stdenv,
mkdocs-material
}:
stdenv.mkDerivation {
name = "nixfiles-docs";
src = ../../docs;
buildInputs = [
mkdocs-material
];
buildPhase = ''
python3 -m mkdocs build
'';
installPhase = ''
mkdir -p $out
cp -r ./site/* $out/
'';
}

View File

@@ -27,6 +27,7 @@ final: prev: {
"http.server" = final.callPackage ./http.server {};
nix-remove-result-links = final.callPackage ./nix-remove-result-links {};
nixfiles-auto-install = final.callPackage ./nixfiles/nixfiles-auto-install.nix {};
nixfiles-docs = final.python3.pkgs.callPackage ./nixfiles-docs {};
nixfiles-docs-options = final.callPackage ./nixfiles-docs-options {};
nixfiles-generate-config = final.callPackage ./nixfiles/nixfiles-generate-config.nix {};
nixfiles-generate-backup-secrets = final.callPackage ./nixfiles/nixfiles-generate-backup-secrets.nix {};