mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
44 lines
706 B
Nix
Executable file
44 lines
706 B
Nix
Executable file
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
microvm-lib = import ../../lib {
|
|
inherit lib;
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
imports = [
|
|
./boot-disk.nix
|
|
./store-disk.nix
|
|
./options.nix
|
|
./asserts.nix
|
|
./system.nix
|
|
./mounts.nix
|
|
./interfaces.nix
|
|
./pci-devices.nix
|
|
./virtiofsd
|
|
./graphics.nix
|
|
./optimization.nix
|
|
./ssh-deploy.nix
|
|
];
|
|
|
|
config = {
|
|
microvm.runner = lib.genAttrs microvm-lib.hypervisors (
|
|
hypervisor:
|
|
microvm-lib.buildRunner {
|
|
inherit pkgs;
|
|
microvmConfig = config.microvm // {
|
|
inherit (config.networking) hostName;
|
|
inherit hypervisor;
|
|
};
|
|
inherit (config.system.build) toplevel;
|
|
}
|
|
);
|
|
};
|
|
}
|