infra: boot a simple VM

This commit is contained in:
Raito Bezarius 2023-07-02 19:45:17 +02:00
parent 444a655fec
commit 8d187d1ef0
3 changed files with 15 additions and 4 deletions

View file

@ -107,6 +107,9 @@ in
flake.colmena = {
meta.nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [
nixos-hypervisor.overlays.default
];
};
epyc = {
imports =

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

@ -10,6 +10,14 @@
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";
}