fix(compute01/extranix): Make it build

This commit is contained in:
Tom Hubrecht 2025-02-09 23:01:20 +01:00
parent 3dd314e78c
commit 0235b77777
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -4,6 +4,7 @@
{
lib,
meta,
sources,
dgn-keys,
...
@ -38,7 +39,7 @@ in
"DGNum Infrastructure" =
let
# prefer a non-patched nixpkgs
infra-nixpkgs = (import "${hive-root}/hive.nix").meta.nixpkgs { };
infra-nixpkgs = (import "${hive-root}/bootstrap.nix").pkgs;
infra-modulesPath = "${infra-nixpkgs.path}/nixos/modules/";
in
{
@ -46,7 +47,7 @@ in
"modules/generic"
"modules/nixos"
];
ignored-modules = import "${infra-modulesPath}/module-list.nix" ++ [
ignored-modules = (import "${infra-modulesPath}/module-list.nix") ++ [
"${sources.agenix}/modules/age.nix"
"${sources.arkheon}/module.nix"
"${sources."microvm.nix"}/nixos-modules/host"
@ -54,21 +55,16 @@ in
{ system.stateVersion = "25.05"; }
];
specialArgs = {
inherit sources;
lib = infra-nixpkgs.lib // {
inherit (lib) extra;
};
modulesPath = infra-modulesPath;
inherit meta sources;
modulesPath = builtins.storePath infra-modulesPath;
pkgs = infra-nixpkgs;
inherit (infra-nixpkgs) lib;
name = "nodeName";
nodeMeta = {
nix-modules = [ ];
admins = [ ];
adminGroups = [ ];
};
meta = {
organization.groups.root = [ ];
};
dgn-keys = dgn-keys // {
getNodeAdmins = _: [ ];
};