Compare commits

...

2 commits

Author SHA1 Message Date
Raito Bezarius
8d187d1ef0 infra: boot a simple VM 2023-07-02 19:45:17 +02:00
Raito Bezarius
444a655fec infra: enable experimental hypervisor on EPYC machine 2023-07-02 17:46:01 +02:00
4 changed files with 24 additions and 4 deletions

View file

@ -8,6 +8,7 @@ let
nur
colmena
flake-registry
nixos-hypervisor
nixos-hardware
nixpkgs-unstable
srvos
@ -43,6 +44,8 @@ let
srvos.nixosModules.mixins-trusted-nix-caches
srvos.nixosModules.mixins-terminfo
nixos-hypervisor.nixosModules.host
# srvos.nixosModules.mixins-telegraf
# srvos.nixosModules.mixins-terminfo
@ -104,6 +107,9 @@ in
flake.colmena = {
meta.nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [
nixos-hypervisor.overlays.default
];
};
epyc = {
imports =

8
flake.lock generated
View file

@ -241,11 +241,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1688312018,
"narHash": "sha256-HU6yQuvGyA9ZPik6VQ1RaIyRfPksDCDVVnUXVfpenzo=",
"lastModified": 1688319245,
"narHash": "sha256-+fXRVu4TDH8mxmZpSByJZCprKfHduFTLOb7sTm4w0RQ=",
"ref": "main",
"rev": "1b532cd9302454fb65027ca9a190c875195fb01c",
"revCount": 2,
"rev": "89b36124b161492f140185815ec5b76a0b29dba7",
"revCount": 5,
"type": "git",
"url": "ssh://gitea@git.newtype.fr/newtype/nixos-hypervisor"
},

View file

@ -3,12 +3,21 @@
../modules/ipmi-supermicro.nix
../modules/hardware/supermicro-H12SSL-i.nix
../modules/iperf-server.nix
../modules/hypervisor.nix
];
networking.hostName = "epyc";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
virtualisation.nvisor.vms = {
vm01 = {
config = { pkgs, ... }: {
environment.systemPackages = [ pkgs.hello ];
};
};
};
simd.arch = "znver3";
system.stateVersion = "23.05";
}

5
modules/hypervisor.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }: {
virtualisation.nvisor = {
enable = true;
};
}