mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 21:42:16 -06:00
test: vaultwarden microVM
This commit is contained in:
parent
e90d05f83d
commit
7ba592c0c5
43 changed files with 4005 additions and 267 deletions
44
example/microvm/default.nix
Executable file
44
example/microvm/default.nix
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
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;
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue