generate documentation for all modules
This commit is contained in:
parent
51b9c431d4
commit
5fee2acd93
1 changed files with 23 additions and 24 deletions
47
flake.nix
47
flake.nix
|
|
@ -15,29 +15,31 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [ nmd.overlays.default ];
|
overlays = [ nmd.overlays.default ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
allModules = [
|
||||||
|
modules/blocks/authelia.nix
|
||||||
|
modules/blocks/backup.nix
|
||||||
|
modules/blocks/davfs.nix
|
||||||
|
modules/blocks/ldap.nix
|
||||||
|
modules/blocks/monitoring.nix
|
||||||
|
modules/blocks/nginx.nix
|
||||||
|
modules/blocks/postgresql.nix
|
||||||
|
modules/blocks/ssl.nix
|
||||||
|
modules/blocks/tinyproxy.nix
|
||||||
|
modules/blocks/vpn.nix
|
||||||
|
|
||||||
|
modules/services/arr.nix
|
||||||
|
modules/services/deluge.nix
|
||||||
|
modules/services/hledger.nix
|
||||||
|
modules/services/home-assistant.nix
|
||||||
|
modules/services/jellyfin.nix
|
||||||
|
modules/services/nextcloud-server.nix
|
||||||
|
modules/services/vaultwarden.nix
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosModules.default = { config, ... }: {
|
nixosModules.default = { config, ... }: {
|
||||||
imports = [
|
imports = allModules;
|
||||||
modules/blocks/authelia.nix
|
|
||||||
modules/blocks/backup.nix
|
|
||||||
modules/blocks/davfs.nix
|
|
||||||
modules/blocks/ldap.nix
|
|
||||||
modules/blocks/monitoring.nix
|
|
||||||
modules/blocks/nginx.nix
|
|
||||||
modules/blocks/postgresql.nix
|
|
||||||
modules/blocks/ssl.nix
|
|
||||||
modules/blocks/tinyproxy.nix
|
|
||||||
modules/blocks/vpn.nix
|
|
||||||
|
|
||||||
modules/services/arr.nix
|
|
||||||
modules/services/deluge.nix
|
|
||||||
modules/services/hledger.nix
|
|
||||||
modules/services/home-assistant.nix
|
|
||||||
modules/services/jellyfin.nix
|
|
||||||
modules/services/nextcloud-server.nix
|
|
||||||
modules/services/vaultwarden.nix
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Inspiration from https://github.com/nix-community/nix-on-droid/blob/039379abeee67144d4094d80bbdaf183fb2eabe5/docs/default.nix#L22
|
# Inspiration from https://github.com/nix-community/nix-on-droid/blob/039379abeee67144d4094d80bbdaf183fb2eabe5/docs/default.nix#L22
|
||||||
|
|
@ -48,10 +50,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
modulesDocs = pkgs.nmd.buildModulesDocs {
|
modulesDocs = pkgs.nmd.buildModulesDocs {
|
||||||
modules = [
|
modules = allModules ++ [ setupModule ];
|
||||||
setupModule
|
|
||||||
./modules/blocks/ssl.nix
|
|
||||||
];
|
|
||||||
moduleRootPaths = [ ../. ];
|
moduleRootPaths = [ ../. ];
|
||||||
mkModuleUrl = path: "https://myproject.foo/${path}";
|
mkModuleUrl = path: "https://myproject.foo/${path}";
|
||||||
channelName = "selfhostblocks";
|
channelName = "selfhostblocks";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue