mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: wip: begin modularizing microvm definitions to allow for other
guest types like containers
This commit is contained in:
parent
8d734287e2
commit
76a8f6e247
5 changed files with 263 additions and 227 deletions
|
@ -48,6 +48,39 @@
|
|||
./microvms/common.nix
|
||||
];
|
||||
|
||||
#guests.adguardhome = {
|
||||
# backend = "microvm";
|
||||
# microvm = {
|
||||
# system = "x86_64-linux";
|
||||
# autostart = true;
|
||||
# };
|
||||
# zfs = {
|
||||
# enable = true;
|
||||
# pool = "rpool";
|
||||
# };
|
||||
# modules = [ ./guests/adguardhome.nix ];
|
||||
#};
|
||||
|
||||
guests = let
|
||||
mkMicrovm = system: module: {
|
||||
backend = "microvm";
|
||||
microvm = {
|
||||
system = "x86_64-linux";
|
||||
autostart = true;
|
||||
};
|
||||
zfs = {
|
||||
enable = true;
|
||||
pool = "rpool";
|
||||
};
|
||||
modules = [
|
||||
../../modules
|
||||
module
|
||||
];
|
||||
};
|
||||
in {
|
||||
adguardhome = mkMicrovm "x86_64-linux" ./guests/adguardhome.nix;
|
||||
};
|
||||
|
||||
meta.microvms.vms = let
|
||||
defaultConfig = name: {
|
||||
system = "x86_64-linux";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue