From 8d187d1ef03929e79cef13e19262d7655ab1db6e Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 2 Jul 2023 19:45:17 +0200 Subject: [PATCH] infra: boot a simple VM --- configurations.nix | 3 +++ flake.lock | 8 ++++---- hosts/epyc.nix | 8 ++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/configurations.nix b/configurations.nix index f8b50ba..550d0fd 100644 --- a/configurations.nix +++ b/configurations.nix @@ -107,6 +107,9 @@ in flake.colmena = { meta.nixpkgs = import nixpkgs { system = "x86_64-linux"; + overlays = [ + nixos-hypervisor.overlays.default + ]; }; epyc = { imports = diff --git a/flake.lock b/flake.lock index 7e4330f..6a47414 100644 --- a/flake.lock +++ b/flake.lock @@ -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" }, diff --git a/hosts/epyc.nix b/hosts/epyc.nix index c7eb7a6..805fa33 100644 --- a/hosts/epyc.nix +++ b/hosts/epyc.nix @@ -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"; }