From 444a655fec714cf9bbc449103d81533e8e27574f Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 2 Jul 2023 17:46:01 +0200 Subject: [PATCH] infra: enable experimental hypervisor on EPYC machine --- configurations.nix | 3 +++ hosts/epyc.nix | 1 + modules/hypervisor.nix | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 modules/hypervisor.nix diff --git a/configurations.nix b/configurations.nix index 8441d78..f8b50ba 100644 --- a/configurations.nix +++ b/configurations.nix @@ -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 diff --git a/hosts/epyc.nix b/hosts/epyc.nix index efbf696..c7eb7a6 100644 --- a/hosts/epyc.nix +++ b/hosts/epyc.nix @@ -3,6 +3,7 @@ ../modules/ipmi-supermicro.nix ../modules/hardware/supermicro-H12SSL-i.nix ../modules/iperf-server.nix + ../modules/hypervisor.nix ]; networking.hostName = "epyc"; diff --git a/modules/hypervisor.nix b/modules/hypervisor.nix new file mode 100644 index 0000000..2b11b5c --- /dev/null +++ b/modules/hypervisor.nix @@ -0,0 +1,5 @@ +{ ... }: { + virtualisation.nvisor = { + enable = true; + }; +}