dream2nix/dev-flake/flake.nix
DavHau 2fc4ef33cc docs: overhaul reference documentation pipeline
- use nixosOptionsDoc commonMark output
- simplify a lot of things
- redesign towards a future generic standalon nixosOptionsWebsite function
2024-04-05 19:42:14 +07:00

52 lines
1.3 KiB
Nix

{
description = "Flake containing inputs/outputs not intended for overriding by the end-user";
nixConfig = {
extra-trusted-public-keys = "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=";
extra-substituters = "https://nix-community.cachix.org";
};
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
flake-compat.url = "github:nix-community/flake-compat/pull/4/head";
flake-compat.flake = false;
# TODO: remove once merged: https://github.com/badboy/mdbook-toc/pull/52
mdbook-toc.url = "github:DavHau/mdbook-toc";
mdbook-toc.inputs.nixpkgs.follows = "nixpkgs";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
devshell = {
url = "github:numtide/devshell";
flake = false;
};
};
outputs = {
self,
devshell,
flake-parts,
nixpkgs,
pre-commit-hooks,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
../modules/flake-parts/all-modules.nix
../pkgs/fetchPipMetadata/flake-module.nix
];
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
};
}