mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
tests/nixos: Test remote build against older versions
This commit is contained in:
parent
da1aae2d06
commit
e502d1cf94
3 changed files with 136 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, hostPkgs, ... }:
|
||||
test@{ config, lib, hostPkgs, ... }:
|
||||
|
||||
let
|
||||
pkgs = config.nodes.client.nixpkgs.pkgs;
|
||||
|
@ -28,12 +28,27 @@ let
|
|||
in
|
||||
|
||||
{
|
||||
name = "remote-builds-ssh-ng";
|
||||
name = lib.mkDefault "remote-builds-ssh-ng";
|
||||
|
||||
# TODO expand module shorthand syntax instead of use imports
|
||||
imports = [{
|
||||
options = {
|
||||
builders.config = lib.mkOption {
|
||||
type = lib.types.deferredModule;
|
||||
description = ''
|
||||
Configuration to add to the builder nodes.
|
||||
'';
|
||||
default = { };
|
||||
};
|
||||
};
|
||||
}];
|
||||
|
||||
nodes =
|
||||
{ builder =
|
||||
{ config, pkgs, ... }:
|
||||
{ services.openssh.enable = true;
|
||||
{
|
||||
imports = [ test.config.builders.config ];
|
||||
services.openssh.enable = true;
|
||||
virtualisation.writableStore = true;
|
||||
nix.settings.sandbox = true;
|
||||
nix.settings.substituters = lib.mkForce [ ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue