2020-08-21 12:12:57 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pipeline.steps = [
|
|
|
|
{
|
|
|
|
command = ''
|
|
|
|
nix-build '<nixpkgs/nixos>' \
|
|
|
|
-I briefcase="$(pwd)" \
|
|
|
|
-I nixpkgs=/var/lib/buildkite-agent-socrates/nixpkgs-channels \
|
|
|
|
-I nixos-config=nixos/socrates/default.nix \
|
|
|
|
-A system \
|
|
|
|
--no-out-link \
|
|
|
|
--show-trace
|
|
|
|
'';
|
2020-08-21 15:00:11 +02:00
|
|
|
label = ":nix: build";
|
2020-08-21 12:12:57 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
in pkgs.writeText "socrates.yml" (builtins.toJSON pipeline)
|