new stuff

This commit is contained in:
soraefir
2026-05-20 18:39:11 +02:00
parent b91e9cacfd
commit b7aa160baa
6 changed files with 190 additions and 37 deletions

View File

@@ -40,7 +40,7 @@ let
] ++ extraOptions;
};
in lib.recursiveUpdate base overrides;
vmBuilder = { name, vm }: (import "${pkgs.path}/nixos/lib/eval-config.nix" {
vmBuilder = { name, vm }: ((import "${pkgs.path}/nixos/lib/eval-config.nix" {
system = "x86_64-linux";
modules = [ vm.cfg
({ config, lib, modulesPath, ... }: {
@@ -65,7 +65,7 @@ let
in if (vm ? portForward && vm.portForward != null) then map parsePortString vm.portForward else [];
};})
];
}.config.system.build.vm);
}).config.system.build.vm);
in {
mkContainer = contBuilder;
mkVm = vmBuilder;