blob: 6e516d372bf2f43f675720674a06d02d9f00096f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{
description = "Deploy GNU hello to localhost";
outputs = { self, nixpkgs }: {
deploy.nodes.example = {
hostname = "localhost";
profiles.hello = {
user = "test_deploy";
path = nixpkgs.legacyPackages.x86_64-linux.hello;
# Just to test that it's working
activate = "$PROFILE/bin/hello";
};
};
checks = builtins.mapAttrs
(_: pkgs: {
jsonschema = pkgs.runCommandNoCC "jsonschema-deploy-simple" { }
"${pkgs.python3.pkgs.jsonschema}/bin/jsonschema -i ${
pkgs.writeText "deploy.json" (builtins.toJSON self.deploy)
} ${../../interface/deploy.json} && touch $out";
})
nixpkgs.legacyPackages;
};
}
|