infrastructure/nixos/templates/proxmox-vm.nix

31 lines
614 B
Nix
Raw Normal View History

2022-10-15 13:44:27 +02:00
{ config, pkgs, lib, ... }: {
2023-01-07 12:52:42 +01:00
imports = [ ../common/common.nix ../common/generic-vm.nix ];
2022-10-15 13:44:27 +02:00
2023-01-07 12:52:42 +01:00
proxmox.qemuConf = {
virtio0 = "local-zsfs:vm-9999-disk-0";
cores = 1;
memory = 1024;
bios = "ovmf";
2022-10-31 10:41:17 +01:00
};
2023-01-16 21:18:47 +01:00
2022-10-15 13:44:27 +02:00
# Enable SSH
services.openssh = {
enable = true;
2023-01-16 21:18:47 +01:00
settings = {
PasswordAuthentication = true;
PermitRootLogin = "yes";
};
2022-10-31 10:41:17 +01:00
openFirewall = true;
2022-10-15 13:44:27 +02:00
};
2022-12-28 15:55:38 +01:00
networking.hostName = lib.mkDefault "template";
2022-10-17 11:55:27 +02:00
2022-10-15 13:44:27 +02:00
time.timeZone = lib.mkDefault "Europe/Amsterdam";
2022-10-31 10:41:17 +01:00
networking.useDHCP = true;
2022-10-15 13:44:27 +02:00
2023-01-07 12:52:42 +01:00
system.stateVersion = "23.05";
2022-10-31 10:41:17 +01:00
users.users.root.initialPassword = "toor";
2022-10-15 13:44:27 +02:00
}