forked from hswaw/hscloud
ops: inject the machine's pkgs into the machine's hscloud tree
This ensures, for example, that the packets are for the correct architecture. Change-Id: If17c307fbad02ee72c6dd21a874c59514415ab2e Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1334 Reviewed-by: implr <implr@hackerspace.pl>master
parent
dcdbd8425c
commit
c35ea6a220
15
default.nix
15
default.nix
|
@ -18,12 +18,15 @@ let
|
|||
config.allowBroken = true;
|
||||
};
|
||||
|
||||
in fix (self: (readTree rec {
|
||||
resForPkgs = pkgs: fix (self: (readTree rec {
|
||||
hscloud = self;
|
||||
pkgs = nixpkgs;
|
||||
pkgsSrc = nixpkgsSrc;
|
||||
inherit (nixpkgs) lib stdenv;
|
||||
} ./.) // {
|
||||
inherit pkgs;
|
||||
pkgsSrc = pkgs.path;
|
||||
inherit (pkgs) lib stdenv;
|
||||
hscloudForPkgs = pkgs: resForPkgs pkgs;
|
||||
} ./.));
|
||||
|
||||
in (resForPkgs nixpkgs) // {
|
||||
root = ./.;
|
||||
pkgs = nixpkgs;
|
||||
})
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
# For information about building/deploying machines see //ops/README.md.
|
||||
|
||||
{ hscloud, pkgs, ... }:
|
||||
{ hscloud, pkgs, hscloudForPkgs, ... }:
|
||||
|
||||
let
|
||||
# nixpkgs for cluster machines (.hswaw.net). Currently pinned to an old
|
||||
|
@ -121,7 +121,7 @@ let
|
|||
passthru.hscloud.provision = pkgs.writeScript "provision-${fqdn}" runProvision;
|
||||
|
||||
# TODO(q3k): this should be named hscloud, but that seems to not work. Debug and rename.
|
||||
_module.args.workspace = hscloud;
|
||||
_module.args.workspace = hscloudForPkgs pkgs;
|
||||
_module.args.machines = machines;
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue