feat(docs): Add home-manager module options to the docs
This commit is contained in:
parent
8e27b9ee60
commit
b036df017c
6 changed files with 22 additions and 11 deletions
12
flake.nix
12
flake.nix
|
@ -29,9 +29,15 @@
|
|||
inherit (nixpkgs) lib;
|
||||
# Helpers for producing system-specific outputs
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { pkgs = import nixpkgs { inherit system; }; });
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
inherit system;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
# Module documentation
|
||||
doc = forEachSupportedSystem ({ pkgs }: import ./docs { inherit pkgs lib; });
|
||||
doc = forEachSupportedSystem ({ pkgs, system }: import ./docs {
|
||||
inherit (home-config.packages.${system}) markdown;
|
||||
inherit pkgs lib;
|
||||
});
|
||||
in
|
||||
{
|
||||
# Schemas tell Nix about the structure of your flake's outputs
|
||||
|
@ -40,7 +46,7 @@
|
|||
packages = doc;
|
||||
|
||||
# Nix files formatter (run `nix fmt`)
|
||||
formatter = forEachSupportedSystem ({ pkgs }: pkgs.nixpkgs-fmt);
|
||||
formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixpkgs-fmt);
|
||||
|
||||
nixosModules =
|
||||
let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue