mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-15 00:52:39 +02:00
feat: kubevirt on k3s
This commit is contained in:
+10
-2
@@ -1,7 +1,9 @@
|
||||
{
|
||||
genCoreModule = {
|
||||
gencoreModule = {
|
||||
pkgs,
|
||||
hostName,
|
||||
vars_networking,
|
||||
...
|
||||
}: let
|
||||
hostAddress = vars_networking.hostAddress.${hostName};
|
||||
in {
|
||||
@@ -18,9 +20,15 @@
|
||||
"cifs" # mount windows share
|
||||
];
|
||||
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
boot.kernelModules = ["kvm-amd" "vfio-pci"];
|
||||
boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Validate Hardware Virtualization Support via:
|
||||
# virt-host-validate qemu
|
||||
libvirt
|
||||
];
|
||||
|
||||
networking = {
|
||||
inherit hostName;
|
||||
inherit (vars_networking) defaultGateway nameservers;
|
||||
|
||||
Reference in New Issue
Block a user