colmena/integration-tests/apply/hive.nix

34 lines
736 B
Nix
Raw Normal View History

2021-11-22 10:52:35 +01:00
let
tools = import ./tools.nix { insideVm = true; };
testPkg = tools.pkgs.runCommand "test-package" {} ''
echo "must appear during build"
mkdir -p $out
'';
in {
meta = {
nixpkgs = tools.pkgs;
};
alpha = { lib, ... }: {
imports = [
(tools.getStandaloneConfigFor "alpha")
];
environment.systemPackages = [ testPkg ];
environment.etc."deployment".text = "SUCCESS";
system.activationScripts.colmena-test.text = ''
echo "must appear during activation"
'';
deployment.keys.example.text = ''
key content
'';
};
deployer = tools.getStandaloneConfigFor "deployer";
beta = tools.getStandaloneConfigFor "beta";
gamma = tools.getStandaloneConfigFor "gamma";
}