chore(bootstrap): Rename file
Some checks failed
Check meta / check_meta (pull_request) Failing after 16s
Check meta / check_dns (pull_request) Successful in 16s
Check workflows / check_workflows (pull_request) Successful in 17s
Build all the nodes / netaccess01 (pull_request) Successful in 22s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Build all the nodes / netcore01 (pull_request) Successful in 22s
Run pre-commit on all files / pre-commit (push) Successful in 27s
Build all the nodes / ap01 (pull_request) Successful in 32s
Build the shell / build-shell (pull_request) Successful in 24s
Run pre-commit on all files / pre-commit (pull_request) Successful in 24s
Build all the nodes / tower01 (pull_request) Successful in 1m52s
Build all the nodes / geo01 (pull_request) Successful in 2m2s
Build all the nodes / geo02 (pull_request) Successful in 2m3s
Build all the nodes / rescue01 (pull_request) Successful in 2m11s
Build all the nodes / bridge01 (pull_request) Successful in 3m19s
Build all the nodes / hypervisor02 (pull_request) Successful in 3m31s
Build all the nodes / web02 (pull_request) Successful in 3m18s
Build all the nodes / build01 (pull_request) Successful in 3m46s
Build all the nodes / hypervisor01 (pull_request) Successful in 3m46s
Build all the nodes / vault01 (pull_request) Successful in 3m50s
Build all the nodes / hypervisor03 (pull_request) Successful in 4m7s
Build all the nodes / compute01 (pull_request) Successful in 4m9s
Build all the nodes / storage01 (pull_request) Successful in 4m11s
Build all the nodes / web01 (pull_request) Successful in 4m7s
Build all the nodes / web03 (pull_request) Successful in 4m6s
Some checks failed
Check meta / check_meta (pull_request) Failing after 16s
Check meta / check_dns (pull_request) Successful in 16s
Check workflows / check_workflows (pull_request) Successful in 17s
Build all the nodes / netaccess01 (pull_request) Successful in 22s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Build all the nodes / netcore01 (pull_request) Successful in 22s
Run pre-commit on all files / pre-commit (push) Successful in 27s
Build all the nodes / ap01 (pull_request) Successful in 32s
Build the shell / build-shell (pull_request) Successful in 24s
Run pre-commit on all files / pre-commit (pull_request) Successful in 24s
Build all the nodes / tower01 (pull_request) Successful in 1m52s
Build all the nodes / geo01 (pull_request) Successful in 2m2s
Build all the nodes / geo02 (pull_request) Successful in 2m3s
Build all the nodes / rescue01 (pull_request) Successful in 2m11s
Build all the nodes / bridge01 (pull_request) Successful in 3m19s
Build all the nodes / hypervisor02 (pull_request) Successful in 3m31s
Build all the nodes / web02 (pull_request) Successful in 3m18s
Build all the nodes / build01 (pull_request) Successful in 3m46s
Build all the nodes / hypervisor01 (pull_request) Successful in 3m46s
Build all the nodes / vault01 (pull_request) Successful in 3m50s
Build all the nodes / hypervisor03 (pull_request) Successful in 4m7s
Build all the nodes / compute01 (pull_request) Successful in 4m9s
Build all the nodes / storage01 (pull_request) Successful in 4m11s
Build all the nodes / web01 (pull_request) Successful in 4m7s
Build all the nodes / web03 (pull_request) Successful in 4m6s
This commit is contained in:
parent
9fe392d4ea
commit
0433a00636
5 changed files with 31 additions and 32 deletions
|
@ -5,34 +5,29 @@
|
|||
# SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
let
|
||||
rawSources = import ./npins;
|
||||
unpatchedSources = import ./npins;
|
||||
|
||||
bootstrapNixpkgs = import rawSources.nixos-unstable { };
|
||||
pkgs = import unpatchedSources.nixos-unstable { };
|
||||
|
||||
patch = (import ./lib/nix-patches { patchFile = ./patches; }).base {
|
||||
pkgs = bootstrapNixpkgs;
|
||||
inherit pkgs;
|
||||
};
|
||||
|
||||
patchedSources = builtins.mapAttrs (
|
||||
sources = builtins.mapAttrs (
|
||||
k: src:
|
||||
patch.applyPatches {
|
||||
inherit src;
|
||||
name = k;
|
||||
}
|
||||
) rawSources;
|
||||
) unpatchedSources;
|
||||
|
||||
libOverlay = final: _: {
|
||||
extra = import ./lib/nix-lib { lib = final; };
|
||||
};
|
||||
overlays.lib = _: lib: { extra = import ./lib/nix-lib { inherit lib; }; };
|
||||
in
|
||||
patchedSources
|
||||
// {
|
||||
|
||||
inherit
|
||||
bootstrapNixpkgs
|
||||
libOverlay
|
||||
rawSources
|
||||
;
|
||||
{
|
||||
inherit overlays sources unpatchedSources;
|
||||
|
||||
fullLib = bootstrapNixpkgs.lib.extend libOverlay;
|
||||
pkgs = pkgs // {
|
||||
lib = pkgs.lib.extend overlays.lib;
|
||||
};
|
||||
}
|
|
@ -3,9 +3,13 @@
|
|||
#
|
||||
# SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
let
|
||||
bootstrap = import ./bootstrap.nix;
|
||||
in
|
||||
|
||||
{
|
||||
sources ? import ./sources.nix,
|
||||
pkgs ? sources.bootstrapNixpkgs,
|
||||
sources ? bootstrap.sources,
|
||||
pkgs ? bootstrap.pkgs,
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
9
hive.nix
9
hive.nix
|
@ -9,12 +9,13 @@
|
|||
let
|
||||
### Init some tooling
|
||||
|
||||
sources = import ./sources.nix;
|
||||
|
||||
lib = sources.fullLib;
|
||||
bootstrap = import ./bootstrap.nix;
|
||||
|
||||
inherit (bootstrap.pkgs) lib;
|
||||
inherit (lib.extra) mapSingleFuse;
|
||||
|
||||
inherit (bootstrap) sources;
|
||||
|
||||
### Let's build meta
|
||||
metadata = (import ./meta) lib;
|
||||
|
||||
|
@ -67,7 +68,7 @@ let
|
|||
# Function to create arguments based on the node
|
||||
#
|
||||
mkArgs = node: rec {
|
||||
lib = sourcePkgs.lib.extend sources.libOverlay;
|
||||
lib = sourcePkgs.lib.extend bootstrap.overlays.lib;
|
||||
|
||||
sourcePkgs = nodePkgs node;
|
||||
meta = metadata;
|
||||
|
|
5
keys.nix
5
keys.nix
|
@ -3,11 +3,10 @@
|
|||
# SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
let
|
||||
sources = import ./sources.nix;
|
||||
bootstrap = import ./bootstrap.nix;
|
||||
|
||||
lib = sources.fullLib;
|
||||
inherit (bootstrap.pkgs) lib;
|
||||
|
||||
meta = (import ../meta lib).config;
|
||||
|
||||
in
|
||||
import ./lib/keys { inherit meta lib; }
|
||||
|
|
|
@ -6,10 +6,12 @@
|
|||
# Nix expression to check if meta module is evaluating correctly.
|
||||
# To do so run `nix-build ./verify.nix`
|
||||
let
|
||||
sources = import ../sources.nix;
|
||||
pkgs = sources.bootstrapNixpkgs;
|
||||
bootstrap = import ../bootstrap.nix;
|
||||
|
||||
dns = import sources."dns.nix" { inherit pkgs; };
|
||||
inherit (bootstrap) pkgs;
|
||||
inherit (pkgs) lib;
|
||||
|
||||
dns = import bootstrap.sources."dns.nix" { inherit pkgs; };
|
||||
in
|
||||
|
||||
{
|
||||
|
@ -28,11 +30,9 @@ in
|
|||
pkgs.writers.writeJSON "meta.json" config;
|
||||
|
||||
dns = dns.util.writeZone "dgnum.eu" (
|
||||
pkgs.lib.recursiveUpdate { SOA.serial = 0; } (
|
||||
lib.recursiveUpdate { SOA.serial = 0; } (
|
||||
import ./dns.nix {
|
||||
inherit dns;
|
||||
|
||||
lib = sources.fullLib;
|
||||
inherit dns lib;
|
||||
}
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue