fix(hive): ensure we are in hermetic evaluation
We don't want any <nixpkgs> to appear out of nowhere. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
parent
6ca347ee51
commit
e94d6fd16e
3 changed files with 4 additions and 1 deletions
1
hive.nix
1
hive.nix
|
@ -81,6 +81,7 @@ in
|
||||||
|
|
||||||
{
|
{
|
||||||
meta = {
|
meta = {
|
||||||
|
nixpkgs = import nixpkgs.nixos.unstable.path;
|
||||||
nodeNixpkgs = mapSingleFuse nodePkgs nodes;
|
nodeNixpkgs = mapSingleFuse nodePkgs nodes;
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
modulesPath,
|
modulesPath,
|
||||||
|
sourcePkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -36,4 +37,5 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
hostname = "ap01-prototype";
|
hostname = "ap01-prototype";
|
||||||
|
nixpkgs.source = sourcePkgs.path;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
shopt -s lastpipe
|
shopt -s lastpipe
|
||||||
|
|
||||||
system_type="$(colmena eval -E "{ nodes, ... }: nodes.${BUILD_NODE}.config.deployment.systemType")"
|
system_type="$(colmena eval -E "{ nodes, ... }: nodes.${BUILD_NODE}.config.deployment.systemType" --show-trace)"
|
||||||
# Get rid of surrounding quotes.
|
# Get rid of surrounding quotes.
|
||||||
system_type="${system_type%\"}"
|
system_type="${system_type%\"}"
|
||||||
system_type="${system_type#\"}"
|
system_type="${system_type#\"}"
|
||||||
|
|
Loading…
Reference in a new issue