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

40 lines
759 B
Nix
Raw Normal View History

2024-03-24 18:02:23 +00:00
{ config, lib, pkgs, ... }: {
imports = [
../../modules/common
../../modules/graphical
];
cherrykitten.graphical.enable = false;
users.users.admin = {
isNormalUser = true;
extraGroups = [ "wheel" ];
password = "admin";
group = "admin";
};
users.groups.admin = { };
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;
};
networking.firewall.allowedTCPPorts = [ 22 ];
environment.systemPackages = with pkgs; [
htop
];
system.stateVersion = "23.10";
}