infra: boot a simple VM

This commit is contained in:
raito 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 = { flake.colmena = {
meta.nixpkgs = import nixpkgs { meta.nixpkgs = import nixpkgs {
system = "x86_64-linux"; system = "x86_64-linux";
overlays = [
nixos-hypervisor.overlays.default
];
}; };
epyc = { epyc = {
imports = imports =

View file

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

View file

@ -10,6 +10,14 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
virtualisation.nvisor.vms = {
vm01 = {
config = { pkgs, ... }: {
environment.systemPackages = [ pkgs.hello ];
};
};
};
simd.arch = "znver3"; simd.arch = "znver3";
system.stateVersion = "23.05"; system.stateVersion = "23.05";
} }