3 baseConfig = { pkgs, ... }: let
4 trivialJob = pkgs.writeTextDir "trivial.nix" ''
5 { trivial = builtins.derivation {
9 allowSubstitutes = false;
10 preferLocalBuild = true;
11 args = ["-c" "echo success > $out; exit 0"];
16 createTrivialProject = pkgs.stdenv.mkDerivation {
17 name = "create-trivial-project";
19 nativeBuildInputs = [ pkgs.makeWrapper ];
20 installPhase = "install -m755 -D ${./create-trivial-project.sh} $out/bin/create-trivial-project.sh";
22 wrapProgram "$out/bin/create-trivial-project.sh" --prefix PATH ":" ${pkgs.lib.makeBinPath [ pkgs.curl ]} --set EXPR_PATH ${trivialJob}
26 virtualisation.memorySize = 2048;
27 time.timeZone = "UTC";
28 environment.systemPackages = [ createTrivialProject pkgs.jq ];
31 # Hydra needs those settings to start up, so we add something not harmfull.
32 hydraURL = "example.com";
33 notificationSender = "example@example.com";
35 email_notification = 1
38 services.postfix.enable = true;
39 nix.settings.substituters = [];