1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add microvm module to simplify setup

This commit is contained in:
oddlama 2023-05-08 17:13:40 +02:00
parent 72a34cac01
commit d842d25eb9
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
8 changed files with 99 additions and 28 deletions

View file

@ -2,7 +2,6 @@
config,
inputs,
lib,
microvm,
nixos-hardware,
pkgs,
...
@ -11,8 +10,6 @@
nixos-hardware.common-cpu-intel
nixos-hardware.common-pc-ssd
microvm.host
../common/core
../common/hardware/intel.nix
../common/hardware/physical.nix
@ -28,21 +25,7 @@
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "r8169"];
microvm.vms = {
test = let
node =
(import ../../nix/generate-node.nix inputs)
"ward-microvm-test" {
system = "x86_64-linux";
config = ./microvms/test;
};
in {
inherit (node) pkgs specialArgs;
config = {
inherit (node) imports;
};
};
};
extra.microvms.test.system = "x86_64-linux";
#services.authelia.instances.main = {
# enable = true;

View file

@ -8,8 +8,6 @@
...
}: {
imports = [
microvm.microvm
../../../common/core
../../../../users/root