catvayor
2551da6388
All checks were successful
Check meta / check_dns (pull_request) Successful in 19s
Check meta / check_meta (pull_request) Successful in 20s
Check workflows / check_workflows (pull_request) Successful in 32s
Build all the nodes / ap01 (pull_request) Successful in 1m35s
Build all the nodes / bridge01 (pull_request) Successful in 2m4s
Build all the nodes / geo01 (pull_request) Successful in 2m18s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m7s
Build all the nodes / geo02 (pull_request) Successful in 2m19s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m35s
Build all the nodes / netcore02 (pull_request) Successful in 34s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m33s
Build all the nodes / compute01 (pull_request) Successful in 4m6s
Build all the nodes / rescue01 (pull_request) Successful in 2m15s
Build all the nodes / storage01 (pull_request) Successful in 2m20s
Build all the nodes / tower01 (pull_request) Successful in 1m49s
Build all the nodes / vault01 (pull_request) Successful in 2m5s
Build the shell / build-shell (pull_request) Successful in 32s
Run pre-commit on all files / pre-commit (pull_request) Successful in 36s
Build all the nodes / web02 (pull_request) Successful in 1m45s
Build all the nodes / web01 (pull_request) Successful in 2m24s
Build all the nodes / web03 (pull_request) Successful in 1m47s
Build all the nodes / ap01 (push) Successful in 1m20s
Build all the nodes / bridge01 (push) Successful in 2m20s
Build all the nodes / geo01 (push) Successful in 2m22s
Build all the nodes / hypervisor01 (push) Successful in 2m24s
Build all the nodes / geo02 (push) Successful in 2m24s
Build all the nodes / netcore02 (push) Successful in 28s
Build all the nodes / hypervisor02 (push) Successful in 1m36s
Build all the nodes / compute01 (push) Successful in 3m14s
Build all the nodes / hypervisor03 (push) Successful in 1m39s
Build all the nodes / tower01 (push) Successful in 1m40s
Build all the nodes / storage01 (push) Successful in 2m12s
Build all the nodes / rescue01 (push) Successful in 2m15s
Build all the nodes / vault01 (push) Successful in 1m57s
Build the shell / build-shell (push) Successful in 39s
Run pre-commit on all files / pre-commit (push) Successful in 42s
Build all the nodes / web02 (push) Successful in 1m44s
Build all the nodes / web01 (push) Successful in 2m23s
Build all the nodes / web03 (push) Successful in 1m40s
113 lines
3.4 KiB
Nix
113 lines
3.4 KiB
Nix
# SPDX-FileCopyrightText: 2024 Lubin Bailly <lubin.bailly@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
{
|
|
lib,
|
|
sources,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.extra) mkImports;
|
|
hive-root = ../../../..;
|
|
host = "search.infra.dgnum.eu";
|
|
in
|
|
{
|
|
services = {
|
|
nginx.virtualHosts.${host} = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
};
|
|
extranix = {
|
|
enable = true;
|
|
modules = {
|
|
"netconf" = {
|
|
paths = mkImports hive-root [
|
|
"modules/netconf"
|
|
"modules/generic"
|
|
"lib/netconf-junos"
|
|
];
|
|
path-translations = [
|
|
{
|
|
base = hive-root;
|
|
url = "https://git.dgnum.eu/DGNum/infrastructure/src/branch/main/";
|
|
}
|
|
];
|
|
};
|
|
"DGNum Infrastructure" =
|
|
let
|
|
# prefer a non-patched nixpkgs
|
|
infra-nixpkgs = (import "${hive-root}/hive.nix").meta.nixpkgs { };
|
|
infra-modulesPath = "${infra-nixpkgs.path}/nixos/modules/";
|
|
in
|
|
{
|
|
paths = mkImports hive-root [
|
|
"modules/generic"
|
|
"modules/nixos"
|
|
];
|
|
ignored-modules = import "${infra-modulesPath}/module-list.nix" ++ [
|
|
"${sources.agenix}/modules/age.nix"
|
|
"${sources.arkheon}/module.nix"
|
|
"${sources."microvm.nix"}/nixos-modules/host"
|
|
"${sources.cgroup-exporter}/nix/module.nix"
|
|
{ system.stateVersion = "25.05"; }
|
|
];
|
|
specialArgs = {
|
|
inherit
|
|
sources
|
|
lib
|
|
;
|
|
modulesPath = infra-modulesPath;
|
|
pkgs = infra-nixpkgs;
|
|
name = "<nodeName>";
|
|
nodeMeta = {
|
|
nix-modules = [ ];
|
|
admins = [ ];
|
|
adminGroups = [ ];
|
|
};
|
|
meta = {
|
|
organization.groups.root = [ ];
|
|
};
|
|
};
|
|
path-translations = [
|
|
{
|
|
base = hive-root;
|
|
url = "https://git.dgnum.eu/DGNum/infrastructure/src/branch/main/";
|
|
}
|
|
{
|
|
base = sources.nix-modules;
|
|
url = "https://git.hubrecht.ovh/hubrecht/nix-modules/src/branch/main/";
|
|
}
|
|
{
|
|
base = infra-modulesPath;
|
|
url = "https://github.com/NixOS/nixpkgs/tree/master/nixos/modules";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
static-data = ./static-data;
|
|
inherit host;
|
|
settings = {
|
|
baseUrl = "https://dgnum.eu/";
|
|
title = "DGNum module documentation";
|
|
languageCode = "en-us";
|
|
params = {
|
|
release_current_stable = "DGNum-Infrastructure";
|
|
logo = "images/dgnum.png";
|
|
footer_credits_line = ''
|
|
Based on <a href="https://github.com/mipmip/home-manager-option-search">Home Manager Option Search</a>
|
|
'';
|
|
footer_copyright_line = ''
|
|
Made by catvayor for the <a href="https://dgnum.eu">DGNum</a>.
|
|
'';
|
|
main_menu = [
|
|
{
|
|
name = ''<img src="images/forgejo.png" style="display:inline-block; height:2.5em; transform:translate(0, -0.7em)" /> Source'';
|
|
url = "https://git.dgnum.eu/DGNum/infrastructure/";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|