forked from raito/shared-public-infra
infra: boot a simple VM
This commit is contained in:
parent
444a655fec
commit
8d187d1ef0
|
@ -107,6 +107,9 @@ in
|
|||
flake.colmena = {
|
||||
meta.nixpkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
overlays = [
|
||||
nixos-hypervisor.overlays.default
|
||||
];
|
||||
};
|
||||
epyc = {
|
||||
imports =
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue