feat(hive.nix): Refactor mkNixpkgsConfig
Some checks failed
Build all the nodes / bridge01 (push) Successful in 1m28s
Build all the nodes / geo01 (push) Successful in 1m27s
Build all the nodes / geo02 (push) Successful in 1m31s
Build all the nodes / rescue01 (push) Successful in 1m57s
Build all the nodes / compute01 (push) Successful in 2m8s
Build all the nodes / vault01 (push) Successful in 1m43s
Build all the nodes / storage01 (push) Successful in 1m49s
Build all the nodes / web02 (push) Successful in 1m19s
Build all the nodes / web01 (push) Successful in 2m6s
Run pre-commit on all files / check (push) Successful in 24s
Build all the nodes / web03 (push) Has been cancelled
Some checks failed
Build all the nodes / bridge01 (push) Successful in 1m28s
Build all the nodes / geo01 (push) Successful in 1m27s
Build all the nodes / geo02 (push) Successful in 1m31s
Build all the nodes / rescue01 (push) Successful in 1m57s
Build all the nodes / compute01 (push) Successful in 2m8s
Build all the nodes / vault01 (push) Successful in 1m43s
Build all the nodes / storage01 (push) Successful in 1m49s
Build all the nodes / web02 (push) Successful in 1m19s
Build all the nodes / web01 (push) Successful in 2m6s
Run pre-commit on all files / check (push) Successful in 24s
Build all the nodes / web03 (push) Has been cancelled
This commit is contained in:
parent
3a325437b8
commit
4fa4d0bc21
1 changed files with 7 additions and 8 deletions
13
hive.nix
13
hive.nix
|
@ -55,13 +55,12 @@ let
|
||||||
|
|
||||||
# Build up the arguments to instantiate a nixpkgs given a system and a version.
|
# Build up the arguments to instantiate a nixpkgs given a system and a version.
|
||||||
mkNixpkgsConfig =
|
mkNixpkgsConfig =
|
||||||
system: version:
|
system:
|
||||||
if system == "nixos" then
|
{
|
||||||
{ }
|
nixos = _: { };
|
||||||
else if system == "zyxel-nwa50ax" then
|
zyxel-nwa50ax = mkLiminixConfig system;
|
||||||
(mkLiminixConfig system version)
|
}
|
||||||
else
|
.${system} or (throw "Unknown system: ${system} for nixpkgs configuration instantiation");
|
||||||
(throw "Unknown system: ${system} for nixpkgs configuration instantiation");
|
|
||||||
|
|
||||||
# Instanciates the required nixpkgs version
|
# Instanciates the required nixpkgs version
|
||||||
mkSystemNixpkgs = system: version: import (mkNixpkgs' version) (mkNixpkgsConfig system version);
|
mkSystemNixpkgs = system: version: import (mkNixpkgs' version) (mkNixpkgsConfig system version);
|
||||||
|
|
Loading…
Reference in a new issue