forked from Fediversity/Fediversity
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{
|
|
lib,
|
|
modulesPath,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
tf = pkgs.callPackage ../../../launch/tf.nix { };
|
|
tfEnv = pkgs.callPackage ../../../launch/tf-env.nix { };
|
|
in
|
|
{
|
|
imports = [
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
(modulesPath + "/../lib/testing/nixos-test-base.nix")
|
|
];
|
|
|
|
environment.systemPackages = [
|
|
tf
|
|
tfEnv
|
|
pkgs.bash
|
|
pkgs.acl
|
|
pkgs.attr
|
|
pkgs.autoconf
|
|
pkgs.automake
|
|
pkgs.python3
|
|
];
|
|
|
|
## Test framework disables switching by default. That might be OK by itself,
|
|
## but we also use this config for getting the dependencies in
|
|
## `deployer.system.extraDependencies`.
|
|
system.switch.enable = true;
|
|
|
|
nix = {
|
|
## Not used; save a large copy operation
|
|
channel.enable = false;
|
|
registry = lib.mkForce { };
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PermitRootLogin = "yes";
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
users.users.root.openssh.authorizedKeys.keyFiles = [ ./deployer.pub ];
|
|
|
|
## Test VMs don't have a bootloader by default.
|
|
boot.loader.grub.enable = false;
|
|
}
|