nix-infra/hosts/test-vm/configuration.nix

44 lines
761 B
Nix
Raw Normal View History

2024-03-24 18:02:24 +00:00
{
config,
lib,
pkgs,
...
}: {
2024-03-24 18:02:23 +00:00
imports = [
../../modules/common
../../modules/graphical
];
cherrykitten.graphical.enable = false;
users.users.admin = {
isNormalUser = true;
2024-03-24 18:02:24 +00:00
extraGroups = ["wheel"];
2024-03-24 18:02:23 +00:00
password = "admin";
group = "admin";
};
2024-03-24 18:02:24 +00:00
users.groups.admin = {};
2024-03-24 18:02:23 +00:00
virtualisation.vmVariant = {
# following configuration is added only when building VM with build-vm
virtualisation = {
memorySize = 8192;
cores = 6;
graphics = true;
};
};
services.openssh = {
enable = true;
settings.PasswordAuthentication = lib.mkForce true;
};
2024-03-24 18:02:24 +00:00
networking.firewall.allowedTCPPorts = [22];
2024-03-24 18:02:23 +00:00
environment.systemPackages = with pkgs; [
htop
];
system.stateVersion = "23.10";
}