treewide: machine -> nodes.machine

This commit is contained in:
Robert Hensing 2022-03-21 00:15:30 +01:00
parent ecbf5ae27a
commit aa0f27abb0
233 changed files with 261 additions and 261 deletions

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ veehaitch ]; maintainers = with lib.maintainers; [ veehaitch ];
}; };
machine = { lib, ... }: { nodes.machine = { lib, ... }: {
services.aesmd = { services.aesmd = {
enable = true; enable = true;
settings = { settings = {

View File

@ -15,7 +15,7 @@ in
maintainers = [ alexarice turion ]; maintainers = [ alexarice turion ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
environment.systemPackages = [ environment.systemPackages = [
(pkgs.agda.withPackages { (pkgs.agda.withPackages {
pkgs = p: [ p.standard-library ]; pkgs = p: [ p.standard-library ];

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = [ sumnerevans ]; maintainers = [ sumnerevans ];
}; };
machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ {
services.airsonic = { services.airsonic = {

View File

@ -18,7 +18,7 @@ makeTest {
meta = with maintainers; { meta = with maintainers; {
maintainers = [ urbas ]; maintainers = [ urbas ];
}; };
machine = { ... }: nodes.machine = { ... }:
{ {
imports = [ ../modules/profiles/headless.nix ../modules/virtualisation/amazon-init.nix ]; imports = [ ../modules/profiles/headless.nix ../modules/virtualisation/amazon-init.nix ];
services.openssh.enable = true; services.openssh.enable = true;

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
name = "apfs"; name = "apfs";
meta.maintainers = with pkgs.lib.maintainers; [ Luflosi ]; meta.maintainers = with pkgs.lib.maintainers; [ Luflosi ];
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
virtualisation.emptyDiskImages = [ 1024 ]; virtualisation.emptyDiskImages = [ 1024 ];
boot.supportedFilesystems = [ "apfs" ]; boot.supportedFilesystems = [ "apfs" ];

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... } : {
maintainers = [ julm ]; maintainers = [ julm ];
}; };
machine = nodes.machine =
{ lib, pkgs, config, ... }: { lib, pkgs, config, ... }:
with lib; with lib;
{ {

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
maintainers = [ bjornfor ]; maintainers = [ bjornfor ];
}; };
machine = nodes.machine =
{ ... }: { ... }:
{ services.atd.enable = true; { services.atd.enable = true;
users.users.alice = { isNormalUser = true; }; users.users.alice = { isNormalUser = true; };

View File

@ -107,7 +107,7 @@ in
{ {
justThePackage = makeTest { justThePackage = makeTest {
name = "atop-justThePackage"; name = "atop-justThePackage";
machine = { nodes.machine = {
environment.systemPackages = [ pkgs.atop ]; environment.systemPackages = [ pkgs.atop ];
}; };
testScript = with assertions; builtins.concatStringsSep "\n" [ testScript = with assertions; builtins.concatStringsSep "\n" [
@ -123,7 +123,7 @@ in
}; };
defaults = makeTest { defaults = makeTest {
name = "atop-defaults"; name = "atop-defaults";
machine = { nodes.machine = {
programs.atop = { programs.atop = {
enable = true; enable = true;
}; };
@ -141,7 +141,7 @@ in
}; };
minimal = makeTest { minimal = makeTest {
name = "atop-minimal"; name = "atop-minimal";
machine = { nodes.machine = {
programs.atop = { programs.atop = {
enable = true; enable = true;
atopService.enable = false; atopService.enable = false;
@ -162,7 +162,7 @@ in
}; };
netatop = makeTest { netatop = makeTest {
name = "atop-netatop"; name = "atop-netatop";
machine = { nodes.machine = {
programs.atop = { programs.atop = {
enable = true; enable = true;
netatop.enable = true; netatop.enable = true;
@ -181,7 +181,7 @@ in
}; };
atopgpu = makeTest { atopgpu = makeTest {
name = "atop-atopgpu"; name = "atop-atopgpu";
machine = { nodes.machine = {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (getName pkg) [ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (getName pkg) [
"cudatoolkit" "cudatoolkit"
]; ];
@ -204,7 +204,7 @@ in
}; };
everything = makeTest { everything = makeTest {
name = "atop-everthing"; name = "atop-everthing";
machine = { nodes.machine = {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (getName pkg) [ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (getName pkg) [
"cudatoolkit" "cudatoolkit"
]; ];

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
name = "bcachefs"; name = "bcachefs";
meta.maintainers = with pkgs.lib.maintainers; [ chiiruno ]; meta.maintainers = with pkgs.lib.maintainers; [ chiiruno ];
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
virtualisation.emptyDiskImages = [ 4096 ]; virtualisation.emptyDiskImages = [ 4096 ];
networking.hostId = "deadbeef"; networking.hostId = "deadbeef";
boot.supportedFilesystems = [ "bcachefs" ]; boot.supportedFilesystems = [ "bcachefs" ];

View File

@ -28,7 +28,7 @@ in
name = "beanstalkd"; name = "beanstalkd";
meta.maintainers = [ lib.maintainers.aanderse ]; meta.maintainers = [ lib.maintainers.aanderse ];
machine = nodes.machine =
{ ... }: { ... }:
{ services.beanstalkd.enable = true; { services.beanstalkd.enable = true;
}; };

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }:
{ {
name = "bees"; name = "bees";
machine = { config, pkgs, ... }: { nodes.machine = { config, pkgs, ... }: {
boot.initrd.postDeviceCommands = '' boot.initrd.postDeviceCommands = ''
${pkgs.btrfs-progs}/bin/mkfs.btrfs -f -L aux1 /dev/vdb ${pkgs.btrfs-progs}/bin/mkfs.btrfs -f -L aux1 /dev/vdb
${pkgs.btrfs-progs}/bin/mkfs.btrfs -f -L aux2 /dev/vdc ${pkgs.btrfs-progs}/bin/mkfs.btrfs -f -L aux2 /dev/vdc

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix { import ./make-test-python.nix {
name = "bind"; name = "bind";
machine = { pkgs, lib, ... }: { nodes.machine = { pkgs, lib, ... }: {
services.bind.enable = true; services.bind.enable = true;
services.bind.extraOptions = "empty-zones-enable no;"; services.bind.extraOptions = "empty-zones-enable no;";
services.bind.zones = lib.singleton { services.bind.zones = lib.singleton {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = with maintainers; [ _1000101 ]; maintainers = with maintainers; [ _1000101 ];
}; };
machine = { ... }: { nodes.machine = { ... }: {
services.bitcoind."mainnet" = { services.bitcoind."mainnet" = {
enable = true; enable = true;
rpc = { rpc = {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = with maintainers; [ _1000101 ]; maintainers = with maintainers; [ _1000101 ];
}; };
machine = { ... }: { nodes.machine = { ... }: {
services.blockbook-frontend."test" = { services.blockbook-frontend."test" = {
enable = true; enable = true;
}; };

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix ({ pkgs, ... }: { import ./make-test-python.nix ({ pkgs, ... }: {
name = "boot-stage1"; name = "boot-stage1";
machine = { config, pkgs, lib, ... }: { nodes.machine = { config, pkgs, lib, ... }: {
boot.extraModulePackages = let boot.extraModulePackages = let
compileKernelModule = name: source: pkgs.runCommandCC name rec { compileKernelModule = name: source: pkgs.runCommandCC name rec {
inherit source; inherit source;

View File

@ -42,7 +42,7 @@ let
nodes = { }; nodes = { };
testScript = testScript =
'' ''
machine = create_machine(${machineConfig}) nodes.machine = create_machine(${machineConfig})
machine.start() machine.start()
machine.wait_for_unit("multi-user.target") machine.wait_for_unit("multi-user.target")
machine.succeed("nix store verify --no-trust -r --option experimental-features nix-command /run/current-system") machine.succeed("nix store verify --no-trust -r --option experimental-features nix-command /run/current-system")
@ -83,7 +83,7 @@ let
name = "boot-netboot-" + name; name = "boot-netboot-" + name;
nodes = { }; nodes = { };
testScript = '' testScript = ''
machine = create_machine(${machineConfig}) nodes.machine = create_machine(${machineConfig})
machine.start() machine.start()
machine.wait_for_unit("multi-user.target") machine.wait_for_unit("multi-user.target")
machine.shutdown() machine.shutdown()
@ -138,7 +138,7 @@ in {
if os.system("qemu-img create -f qcow2 -F raw -b ${sdImage} ${mutableImage}") != 0: if os.system("qemu-img create -f qcow2 -F raw -b ${sdImage} ${mutableImage}") != 0:
raise RuntimeError("Could not create mutable linked image") raise RuntimeError("Could not create mutable linked image")
machine = create_machine(${machineConfig}) nodes.machine = create_machine(${machineConfig})
machine.start() machine.start()
machine.wait_for_unit("multi-user.target") machine.wait_for_unit("multi-user.target")
machine.succeed("nix store verify -r --no-trust --option experimental-features nix-command /run/current-system") machine.succeed("nix store verify -r --no-trust --option experimental-features nix-command /run/current-system")

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
name = "bpf"; name = "bpf";
meta.maintainers = with pkgs.lib.maintainers; [ martinetd ]; meta.maintainers = with pkgs.lib.maintainers; [ martinetd ];
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
programs.bcc.enable = true; programs.bcc.enable = true;
environment.systemPackages = with pkgs; [ bpftrace ]; environment.systemPackages = with pkgs; [ bpftrace ];
}; };

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ lib, ... }: {
name = "breitbandmessung"; name = "breitbandmessung";
meta.maintainers = with lib.maintainers; [ b4dm4n ]; meta.maintainers = with lib.maintainers; [ b4dm4n ];
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
imports = [ imports = [
./common/user-account.nix ./common/user-account.nix
./common/x11.nix ./common/x11.nix

View File

@ -7,7 +7,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
maintainers = [ mattchrist ]; maintainers = [ mattchrist ];
}; };
machine = { pkgs, ... }: nodes.machine = { pkgs, ... }:
{ {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
hardware.sane = { hardware.sane = {

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
maintainers = [ flokli ]; maintainers = [ flokli ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
services.buildkite-agents = { services.buildkite-agents = {
one = { one = {
privateSshKeyPath = (import ./ssh-keys.nix pkgs).snakeOilPrivateKey; privateSshKeyPath = (import ./ssh-keys.nix pkgs).snakeOilPrivateKey;

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
maintainers = [ matthewbauer ]; maintainers = [ matthewbauer ];
}; };
machine = { ... }: nodes.machine = { ... }:
{ {
imports = [ ./common/user-account.nix ]; imports = [ ./common/user-account.nix ];

View File

@ -13,7 +13,7 @@ in
maintainers = [ berbiche ]; maintainers = [ berbiche ];
}; };
machine = { config, ... }: nodes.machine = { config, ... }:
let let
alice = config.users.users.alice; alice = config.users.users.alice;
in { in {

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix ({ pkgs, ...} : { import ./make-test-python.nix ({ pkgs, ...} : {
name = "cfssl"; name = "cfssl";
machine = { config, lib, pkgs, ... }: nodes.machine = { config, lib, pkgs, ... }:
{ {
networking.firewall.allowedTCPPorts = [ config.services.cfssl.port ]; networking.firewall.allowedTCPPorts = [ config.services.cfssl.port ];

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
name = "clickhouse"; name = "clickhouse";
meta.maintainers = with pkgs.lib.maintainers; [ ma27 ]; meta.maintainers = with pkgs.lib.maintainers; [ ma27 ];
machine = { nodes.machine = {
services.clickhouse.enable = true; services.clickhouse.enable = true;
virtualisation.memorySize = 4096; virtualisation.memorySize = 4096;
}; };

View File

@ -61,7 +61,7 @@ in makeTest {
meta = with pkgs.lib.maintainers; { meta = with pkgs.lib.maintainers; {
maintainers = [ lewo ]; maintainers = [ lewo ];
}; };
machine = { ... }: nodes.machine = { ... }:
{ {
virtualisation.qemu.options = [ "-cdrom" "${metadataDrive}/metadata.iso" ]; virtualisation.qemu.options = [ "-cdrom" "${metadataDrive}/metadata.iso" ];
services.cloud-init = { services.cloud-init = {

View File

@ -46,7 +46,7 @@ let
meta = with pkgs.lib.maintainers; { maintainers = [ sorki mic92 ]; }; meta = with pkgs.lib.maintainers; { maintainers = [ sorki mic92 ]; };
machine = { lib, ... }: { nodes.machine = { lib, ... }: {
environment.systemPackages = [ pkgs.cntr ]; environment.systemPackages = [ pkgs.cntr ];
containers.test = { containers.test = {
autoStart = true; autoStart = true;

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
name = "collectd"; name = "collectd";
meta = { }; meta = { };
machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ {

View File

@ -11,7 +11,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ aristid aszlig eelco kampfschlaefer ]; maintainers = with lib.maintainers; [ aristid aszlig eelco kampfschlaefer ];
}; };
machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ imports = [ ../modules/installer/cd-dvd/channel.nix ]; { imports = [ ../modules/installer/cd-dvd/channel.nix ];
virtualisation.writableStore = true; virtualisation.writableStore = true;

View File

@ -12,7 +12,7 @@ in {
maintainers = with lib.maintainers; [ adisbladis earvstedt ]; maintainers = with lib.maintainers; [ adisbladis earvstedt ];
}; };
machine = { config, ... }: { nodes.machine = { config, ... }: {
assertions = let assertions = let
helloName = (builtins.head config.containers.test.config.system.extraDependencies).name; helloName = (builtins.head config.containers.test.config.system.extraDependencies).name;
in [ { in [ {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ patryk27 ]; maintainers = with lib.maintainers; [ patryk27 ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
virtualisation.writableStore = true; virtualisation.writableStore = true;
containers.webserver = { containers.webserver = {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ kampfschlaefer ]; maintainers = with lib.maintainers; [ kampfschlaefer ];
}; };
machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ imports = [ ../modules/installer/cd-dvd/channel.nix ]; { imports = [ ../modules/installer/cd-dvd/channel.nix ];
virtualisation.writableStore = true; virtualisation.writableStore = true;

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ montag451 ]; maintainers = with lib.maintainers; [ montag451 ];
}; };
machine = nodes.machine =
{ lib, ... }: { lib, ... }:
{ {
virtualisation.vlans = []; virtualisation.vlans = [];

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ aristid aszlig eelco kampfschlaefer ]; maintainers = with lib.maintainers; [ aristid aszlig eelco kampfschlaefer ];
}; };
machine = nodes.machine =
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ imports = [ ../modules/installer/cd-dvd/channel.nix ]; { imports = [ ../modules/installer/cd-dvd/channel.nix ];

View File

@ -17,7 +17,7 @@ in import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ aristid aszlig eelco kampfschlaefer ]; maintainers = with lib.maintainers; [ aristid aszlig eelco kampfschlaefer ];
}; };
machine = nodes.machine =
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ ../modules/installer/cd-dvd/channel.nix ]; imports = [ ../modules/installer/cd-dvd/channel.nix ];
virtualisation = { virtualisation = {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ patryk27 ]; maintainers = with lib.maintainers; [ patryk27 ];
}; };
machine = { ... }: { nodes.machine = { ... }: {
# We're using the newest kernel, so that we can test containers with long names. # We're using the newest kernel, so that we can test containers with long names.
# Please see https://github.com/NixOS/nixpkgs/issues/38509 for details. # Please see https://github.com/NixOS/nixpkgs/issues/38509 for details.
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;

View File

@ -5,7 +5,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
meta = with pkgs.lib.maintainers; { maintainers = [ sorki ]; }; meta = with pkgs.lib.maintainers; { maintainers = [ sorki ]; };
machine = { lib, ... }: nodes.machine = { lib, ... }:
let let
makeNested = subConf: { makeNested = subConf: {
containers.nested = { containers.nested = {

View File

@ -11,7 +11,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ aristid aszlig eelco kampfschlaefer ianwookim ]; maintainers = with lib.maintainers; [ aristid aszlig eelco kampfschlaefer ianwookim ];
}; };
machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ imports = [ ../modules/installer/cd-dvd/channel.nix ]; { imports = [ ../modules/installer/cd-dvd/channel.nix ];
virtualisation.writableStore = true; virtualisation.writableStore = true;

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
maintainers = with lib.maintainers; [ patryk27 ]; maintainers = with lib.maintainers; [ patryk27 ];
}; };
machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ imports = [ ../modules/installer/cd-dvd/channel.nix ]; { imports = [ ../modules/installer/cd-dvd/channel.nix ];
virtualisation.writableStore = true; virtualisation.writableStore = true;

View File

@ -76,7 +76,7 @@ in
enableOCR = true; enableOCR = true;
machine = { pkgs, ... }: nodes.machine = { pkgs, ... }:
{ imports = [ ./common/user-account.nix ./common/x11.nix ]; { imports = [ ./common/user-account.nix ./common/x11.nix ];
# chromium-based browsers refuse to run as root # chromium-based browsers refuse to run as root

View File

@ -3,7 +3,7 @@ import ./make-test-python.nix ({ pkgs, latestKernel ? false, ... }:
{ {
name = "disable-installer-tools"; name = "disable-installer-tools";
machine = nodes.machine =
{ pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
system.disableInstallerTools = true; system.disableInstallerTools = true;

View File

@ -5,7 +5,7 @@ import ./make-test-python.nix (
maintainers = with maintainers; [ jojosch ]; maintainers = with maintainers; [ jojosch ];
}; };
machine = { pkgs, lib, ... }: { nodes.machine = { pkgs, lib, ... }: {
services.bind = { services.bind = {
enable = true; enable = true;
extraOptions = "empty-zones-enable no;"; extraOptions = "empty-zones-enable no;";

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix (
maintainers = [ cole-h ]; maintainers = [ cole-h ];
}; };
machine = nodes.machine =
{ ... }: { ... }:
{ {
users.groups = { foobar = {}; barfoo = {}; baz = { gid = 1337; }; }; users.groups = { foobar = {}; barfoo = {}; baz = { gid = 1337; }; };

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
maintainers = [ ma27 ]; maintainers = [ ma27 ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
environment.systemPackages = [ pkgs.jq ]; environment.systemPackages = [ pkgs.jq ];
services.documize = { services.documize = {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = [ fgaz ]; maintainers = [ fgaz ];
}; };
machine = { config, pkgs, ... }: { nodes.machine = { config, pkgs, ... }: {
imports = [ imports = [
./common/x11.nix ./common/x11.nix
]; ];

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix { import ./make-test-python.nix {
name = "dovecot"; name = "dovecot";
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
imports = [ common/user-account.nix ]; imports = [ common/user-account.nix ];
services.postfix.enable = true; services.postfix.enable = true;
services.dovecot2 = { services.dovecot2 = {

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ ... }:
{ {
name = "ecryptfs"; name = "ecryptfs";
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
imports = [ ./common/user-account.nix ]; imports = [ ./common/user-account.nix ];
boot.kernelModules = [ "ecryptfs" ]; boot.kernelModules = [ "ecryptfs" ];
security.pam.enableEcryptfs = true; security.pam.enableEcryptfs = true;

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
enableOCR = true; enableOCR = true;
machine = nodes.machine =
{ ... }: { ... }:
{ imports = [ ./common/x11.nix ]; { imports = [ ./common/x11.nix ];

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
maintainers = [ romildo ]; maintainers = [ romildo ];
}; };
machine = { ... }: nodes.machine = { ... }:
{ {
imports = [ ./common/user-account.nix ]; imports = [ ./common/user-account.nix ];
services.xserver.enable = true; services.xserver.enable = true;

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
maintainers = [ nequissimus ]; maintainers = [ nequissimus ];
}; };
machine = { pkgs, ... }: nodes.machine = { pkgs, ... }:
{ {
boot.kernelPackages = pkgs.linuxPackages; boot.kernelPackages = pkgs.linuxPackages;
environment.etc.plainFile.text = '' environment.etc.plainFile.text = ''

View File

@ -9,7 +9,7 @@ in {
maintainers = [ felschr ]; maintainers = [ felschr ];
}; };
machine = { pkgs, ... }: nodes.machine = { pkgs, ... }:
{ {
services.etebase-server = { services.etebase-server = {
inherit dataDir; inherit dataDir;

View File

@ -5,7 +5,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = [ _3699n ]; maintainers = [ _3699n ];
}; };
machine = { config, pkgs, ... }: { nodes.machine = { config, pkgs, ... }: {
environment.systemPackages = [ pkgs.curl pkgs.etesync-dav ]; environment.systemPackages = [ pkgs.curl pkgs.etesync-dav ];
}; };

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... } : {
maintainers = [ evils ]; maintainers = [ evils ];
}; };
machine = { ... }: { nodes.machine = { ... }: {
imports = [ ../modules/profiles/minimal.nix ]; imports = [ ../modules/profiles/minimal.nix ];
hardware.fancontrol.enable = true; hardware.fancontrol.enable = true;
hardware.fancontrol.config = '' hardware.fancontrol.config = ''

View File

@ -5,7 +5,7 @@ import ../make-test-python.nix (
# copy_from_host works only for store paths # copy_from_host works only for store paths
rec { rec {
name = "fcitx"; name = "fcitx";
machine = nodes.machine =
{ {
pkgs, pkgs,
... ...

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, firefoxPackage, ... }: {
maintainers = [ eelco shlevy ]; maintainers = [ eelco shlevy ];
}; };
machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ imports = [ ./common/x11.nix ]; { imports = [ ./common/x11.nix ];

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix ({ pkgs, ... }: { import ./make-test-python.nix ({ pkgs, ... }: {
name = "fish"; name = "fish";
machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ {

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix ({ pkgs, lib, ... }: { import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "fluentd"; name = "fluentd";
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
services.fluentd = { services.fluentd = {
enable = true; enable = true;
config = '' config = ''

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ lib, ... }:
jtojnar jtojnar
]; ];
machine = { config, pkgs, ... }: { nodes.machine = { config, pkgs, ... }: {
fonts.enableDefaultFonts = true; # Background fonts fonts.enableDefaultFonts = true; # Background fonts
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
noto-fonts-emoji noto-fonts-emoji

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix { import ./make-test-python.nix {
name = "fsck"; name = "fsck";
machine = { lib, ... }: { nodes.machine = { lib, ... }: {
virtualisation.emptyDiskImages = [ 1 ]; virtualisation.emptyDiskImages = [ 1 ];
virtualisation.fileSystems = { virtualisation.fileSystems = {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = [ fgaz ]; maintainers = [ fgaz ];
}; };
machine = { config, pkgs, ... }: { nodes.machine = { config, pkgs, ... }: {
imports = [ imports = [
./common/x11.nix ./common/x11.nix
]; ];

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = with maintainers; [bachp ]; maintainers = with maintainers; [bachp ];
}; };
machine = { ... }: { nodes.machine = { ... }: {
services.geth."mainnet" = { services.geth."mainnet" = {
enable = true; enable = true;
http = { http = {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
maintainers = teams.gnome.members; maintainers = teams.gnome.members;
}; };
machine = { nodes, ... }: let nodes.machine = { nodes, ... }: let
user = nodes.machine.config.users.users.alice; user = nodes.machine.config.users.users.alice;
in in

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
maintainers = teams.gnome.members; maintainers = teams.gnome.members;
}; };
machine = nodes.machine =
{ ... }: { ... }:
{ imports = [ ./common/user-account.nix ]; { imports = [ ./common/user-account.nix ];

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
maintainers = [ ma27 ]; maintainers = [ ma27 ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
environment.systemPackages = [ pkgs.jq ]; environment.systemPackages = [ pkgs.jq ];
services.gotify = { services.gotify = {

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "graylog"; name = "graylog";
meta.maintainers = with lib.maintainers; [ ]; meta.maintainers = with lib.maintainers; [ ];
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
virtualisation.memorySize = 4096; virtualisation.memorySize = 4096;
virtualisation.diskSize = 4096; virtualisation.diskSize = 4096;

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = [ ma27 ]; maintainers = [ ma27 ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
services.grocy = { services.grocy = {
enable = true; enable = true;
hostName = "localhost"; hostName = "localhost";

View File

@ -5,7 +5,7 @@ import ./make-test-python.nix ({ lib, ... }: {
maintainers = [ rnhmjoj ]; maintainers = [ rnhmjoj ];
}; };
machine = { ... }: { nodes.machine = { ... }: {
virtualisation.useBootLoader = true; virtualisation.useBootLoader = true;
boot.loader.timeout = null; boot.loader.timeout = null;

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... } : {
maintainers = [ joachifm ]; maintainers = [ joachifm ];
}; };
machine = nodes.machine =
{ lib, pkgs, config, ... }: { lib, pkgs, config, ... }:
with lib; with lib;
{ users.users.alice = { isNormalUser = true; extraGroups = [ "proc" ]; }; { users.users.alice = { isNormalUser = true; extraGroups = [ "proc" ]; };

View File

@ -5,7 +5,7 @@ import ./make-test-python.nix ({ lib, ...} : {
maintainers = with lib.maintainers; [ thibautmarty ]; maintainers = with lib.maintainers; [ thibautmarty ];
}; };
machine = { pkgs, lib, ... }: { nodes.machine = { pkgs, lib, ... }: {
imports = [ ./common/x11.nix ./common/user-account.nix ]; imports = [ ./common/x11.nix ./common/user-account.nix ];
test-support.displayManager.auto.user = "alice"; test-support.displayManager.auto.user = "alice";
services.xserver.displayManager.defaultSession = lib.mkForce "none+herbstluftwm"; services.xserver.displayManager.defaultSession = lib.mkForce "none+herbstluftwm";

View File

@ -39,7 +39,7 @@ in makeTest {
nodes = { nodes = {
# System configuration used for installing the installedConfig from above. # System configuration used for installing the installedConfig from above.
machine = { config, lib, pkgs, ... }: with lib; { nodes.machine = { config, lib, pkgs, ... }: with lib; {
imports = [ imports = [
../modules/profiles/installation-device.nix ../modules/profiles/installation-device.nix
../modules/profiles/base.nix ../modules/profiles/base.nix

View File

@ -4,7 +4,7 @@ import ../make-test-python.nix ({ pkgs, ... }:
meta = with pkgs.lib.maintainers; { meta = with pkgs.lib.maintainers; {
maintainers = [ jflanglois ]; maintainers = [ jflanglois ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
environment.systemPackages = [ pkgs.curl ]; environment.systemPackages = [ pkgs.curl ];
services.hitch = { services.hitch = {
enable = true; enable = true;

View File

@ -5,7 +5,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
broken = true; # tries to download from registry-1.docker.io - how did this ever work? broken = true; # tries to download from registry-1.docker.io - how did this ever work?
}; };
machine = import ./machine.nix; nodes.machine = import ./machine.nix;
testScript = '' testScript = ''
start_all() start_all()

View File

@ -24,7 +24,7 @@ in {
name = "hockeypuck"; name = "hockeypuck";
meta.maintainers = with lib.maintainers; [ etu ]; meta.maintainers = with lib.maintainers; [ etu ];
machine = { ... }: { nodes.machine = { ... }: {
# Used for test # Used for test
environment.systemPackages = [ pkgs.gnupg ]; environment.systemPackages = [ pkgs.gnupg ];

View File

@ -20,7 +20,7 @@ let
maintainers = [ primeos blitz ]; maintainers = [ primeos blitz ];
}; };
machine = { lib, ... }: { nodes.machine = { lib, ... }: {
networking.hostName = hostName; networking.hostName = hostName;
networking.domain = domain; networking.domain = domain;

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... } : {
meta = with pkgs.lib.maintainers; { meta = with pkgs.lib.maintainers; {
maintainers = [ grahamc ]; maintainers = [ grahamc ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
services.hound = { services.hound = {
enable = true; enable = true;
config = '' config = ''

View File

@ -20,7 +20,7 @@ let
maintainers = [ lewo ma27 ]; maintainers = [ lewo ma27 ];
}; };
machine = { pkgs, lib, ... }: { nodes.machine = { pkgs, lib, ... }: {
imports = [ baseConfig ]; imports = [ baseConfig ];
services.hydra = { inherit package; }; services.hydra = { inherit package; };
}; };

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
maintainers = [ aszlig ]; maintainers = [ aszlig ];
}; };
machine = { lib, ... }: { nodes.machine = { lib, ... }: {
imports = [ ./common/x11.nix ./common/user-account.nix ]; imports = [ ./common/x11.nix ./common/user-account.nix ];
test-support.displayManager.auto.user = "alice"; test-support.displayManager.auto.user = "alice";
services.xserver.displayManager.defaultSession = lib.mkForce "none+i3"; services.xserver.displayManager.defaultSession = lib.mkForce "none+i3";

View File

@ -7,7 +7,7 @@ let
inherit (import ../../lib/testing-python.nix { inherit system pkgs; }) makeTest; inherit (import ../../lib/testing-python.nix { inherit system pkgs; }) makeTest;
f = backend: makeTest { f = backend: makeTest {
name = "ihatemoney-${backend}"; name = "ihatemoney-${backend}";
machine = { nodes, lib, ... }: { nodes.machine = { nodes, lib, ... }: {
services.ihatemoney = { services.ihatemoney = {
enable = true; enable = true;
enablePublicProjectCreation = true; enablePublicProjectCreation = true;

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
name = "incron"; name = "incron";
meta.maintainers = [ lib.maintainers.aanderse ]; meta.maintainers = [ lib.maintainers.aanderse ];
machine = nodes.machine =
{ ... }: { ... }:
{ services.incron.enable = true; { services.incron.enable = true;
services.incron.extraPackages = [ pkgs.coreutils ]; services.incron.extraPackages = [ pkgs.coreutils ];

View File

@ -3,7 +3,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
meta.maintainers = [ pkgs.lib.maintainers.eelco ]; meta.maintainers = [ pkgs.lib.maintainers.eelco ];
machine = { ... }: { nodes.machine = { ... }: {
imports = [ ../modules/profiles/minimal.nix ]; imports = [ ../modules/profiles/minimal.nix ];
boot.initrd.network.enable = true; boot.initrd.network.enable = true;
boot.initrd.network.postCommands = boot.initrd.network.postCommands =

View File

@ -11,7 +11,7 @@ let
meta.maintainers = [ lib.maintainers.lheckemann ]; meta.maintainers = [ lib.maintainers.lheckemann ];
machine = { ... }: { nodes.machine = { ... }: {
virtualisation.useBootLoader = true; virtualisation.useBootLoader = true;
boot.initrd.secrets = { boot.initrd.secrets = {
"/test" = secretInStore; "/test" = secretInStore;

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
maintainers = with pkgs.lib.maintainers; [ LunNova ]; maintainers = with pkgs.lib.maintainers; [ LunNova ];
}; };
machine = { config, ... }: nodes.machine = { config, ... }:
let user = config.users.users.sybil; in let user = config.users.users.sybil; in
{ {
imports = [ imports = [

View File

@ -43,7 +43,7 @@ let
maintainers = tested.meta.maintainers; maintainers = tested.meta.maintainers;
}; };
machine = { ... }: { nodes.machine = { ... }: {
imports = [ imports = [
testConfig testConfig
] ++ optional withX11 ../common/x11.nix; ] ++ optional withX11 ../common/x11.nix;

View File

@ -5,7 +5,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = [ sbruder ]; maintainers = [ sbruder ];
}; };
machine = { config, lib, pkgs, ... }: { nodes.machine = { config, lib, pkgs, ... }: {
services.invidious = { services.invidious = {
enable = true; enable = true;
}; };

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = [ asbachb ]; maintainers = [ asbachb ];
}; };
machine = { config, pkgs, ... }: { nodes.machine = { config, pkgs, ... }: {
services.isso = { services.isso = {
enable = true; enable = true;
settings = { settings = {

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }:
name = "jellyfin"; name = "jellyfin";
meta.maintainers = with lib.maintainers; [ minijackson ]; meta.maintainers = with lib.maintainers; [ minijackson ];
machine = nodes.machine =
{ ... }: { ... }:
{ {
services.jellyfin.enable = true; services.jellyfin.enable = true;

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
maintainers = teams.jitsi.members; maintainers = teams.jitsi.members;
}; };
machine = { config, pkgs, ... }: { nodes.machine = { config, pkgs, ... }: {
virtualisation.memorySize = 5120; virtualisation.memorySize = 5120;
services.jitsi-meet = { services.jitsi-meet = {

View File

@ -38,7 +38,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
maintainers = [ euank ]; maintainers = [ euank ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
environment.systemPackages = with pkgs; [ k3s gzip ]; environment.systemPackages = with pkgs; [ k3s gzip ];
# k3s uses enough resources the default vm fails. # k3s uses enough resources the default vm fails.

View File

@ -38,7 +38,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
maintainers = [ euank ]; maintainers = [ euank ];
}; };
machine = { pkgs, ... }: { nodes.machine = { pkgs, ... }: {
environment.systemPackages = with pkgs; [ k3s gzip ]; environment.systemPackages = with pkgs; [ k3s gzip ];
# k3s uses enough resources the default vm fails. # k3s uses enough resources the default vm fails.

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }:
meta.maintainers = with lib.maintainers; [ oxalica ]; meta.maintainers = with lib.maintainers; [ oxalica ];
machine = { ... }: {}; nodes.machine = { ... }: {};
testScript = '' testScript = ''
machine.succeed("gzip -cd ${pkgs.terminus_font}/share/consolefonts/ter-v16b.psf.gz >font.psf") machine.succeed("gzip -cd ${pkgs.terminus_font}/share/consolefonts/ter-v16b.psf.gz >font.psf")

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix ({ pkgs, ... }: { import ./make-test-python.nix ({ pkgs, ... }: {
name = "kbd-update-search-paths-patch"; name = "kbd-update-search-paths-patch";
machine = { pkgs, options, ... }: { nodes.machine = { pkgs, options, ... }: {
console = { console = {
packages = options.console.packages.default ++ [ pkgs.terminus_font ]; packages = options.console.packages.default ++ [ pkgs.terminus_font ];
}; };

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
maintainers = [ turion ]; maintainers = [ turion ];
}; };
machine = { ... }: nodes.machine = { ... }:
{ {
imports = [ imports = [

View File

@ -1,6 +1,6 @@
import ../make-test-python.nix ({pkgs, ...}: { import ../make-test-python.nix ({pkgs, ...}: {
name = "kerberos_server-heimdal"; name = "kerberos_server-heimdal";
machine = { config, libs, pkgs, ...}: nodes.machine = { config, libs, pkgs, ...}:
{ services.kerberos_server = { services.kerberos_server =
{ enable = true; { enable = true;
realms = { realms = {

View File

@ -1,6 +1,6 @@
import ../make-test-python.nix ({pkgs, ...}: { import ../make-test-python.nix ({pkgs, ...}: {
name = "kerberos_server-mit"; name = "kerberos_server-mit";
machine = { config, libs, pkgs, ...}: nodes.machine = { config, libs, pkgs, ...}:
{ services.kerberos_server = { services.kerberos_server =
{ enable = true; { enable = true;
realms = { realms = {

View File

@ -12,7 +12,7 @@ let
maintainers = [ nequissimus atemu ]; maintainers = [ nequissimus atemu ];
}; };
machine = { ... }: nodes.machine = { ... }:
{ {
boot.kernelPackages = linuxPackages; boot.kernelPackages = linuxPackages;
}; };

View File

@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
maintainers = [ veehaitch ]; maintainers = [ veehaitch ];
}; };
machine = { pkgs, ... }: nodes.machine = { pkgs, ... }:
{ {
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
networking.wireless.athUserRegulatoryDomain = true; networking.wireless.athUserRegulatoryDomain = true;

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
maintainers = [ eelco ]; maintainers = [ eelco ];
}; };
machine = { ... }: nodes.machine = { ... }:
{ virtualisation.vlans = [ ]; }; { virtualisation.vlans = [ ]; };
testScript = testScript =

View File

@ -7,7 +7,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
maintainers = [ eqyiel ]; maintainers = [ eqyiel ];
}; };
machine = nodes.machine =
{ ... }: { { ... }: {
krb5 = { krb5 = {
enable = true; enable = true;

View File

@ -7,7 +7,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
maintainers = [ eqyiel ]; maintainers = [ eqyiel ];
}; };
machine = nodes.machine =
{ pkgs, ... }: { { pkgs, ... }: {
krb5 = { krb5 = {
enable = true; enable = true;

View File

@ -6,7 +6,7 @@ import ./make-test-python.nix ({ lib, ...} :
maintainers = [ rnhmjoj ]; maintainers = [ rnhmjoj ];
}; };
machine = { ... }: { nodes.machine = { ... }: {
imports = [ ../modules/profiles/minimal.nix ]; imports = [ ../modules/profiles/minimal.nix ];
hardware.ksm.enable = true; hardware.ksm.enable = true;

View File

@ -3,7 +3,7 @@ import ./make-test-python.nix ({ ... }:
{ {
name = "libinput"; name = "libinput";
machine = { ... }: nodes.machine = { ... }:
{ {
imports = [ imports = [
./common/x11.nix ./common/x11.nix

Some files were not shown because too many files have changed in this diff Show More