mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
test: trying to get microVMs to work
This commit is contained in:
parent
8f74b8dbc8
commit
0c4173ceaf
6 changed files with 13 additions and 12 deletions
11
modules/nixos/guests/default.nix
Executable file
11
modules/nixos/guests/default.nix
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
||||
14
modules/nixos/microvm/default.nix
Executable file → Normal file
14
modules/nixos/microvm/default.nix
Executable file → Normal file
|
|
@ -1,17 +1,7 @@
|
|||
{ flake, ... }:
|
||||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
|
||||
microVMImport = [
|
||||
{
|
||||
imports = [
|
||||
flake.inputs.microvm.nixosModules.host
|
||||
];
|
||||
|
||||
in
|
||||
{
|
||||
imports = importList ++ microVMImport;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue