This commit is contained in:
soraefir
2026-06-20 10:54:17 +02:00
parent b55afcfdf6
commit 8e21f3dae8
9 changed files with 31 additions and 27 deletions
@@ -0,0 +1,2 @@
{ name, ... }:
throw "Container app `${name}` is not implemented yet."
+2 -3
View File
@@ -1,3 +1,2 @@
{...}:{
}
{ name, ... }:
throw "Container app `${name}` is not implemented yet."
+1 -1
View File
@@ -61,7 +61,7 @@ let
};
in lib.recursiveUpdate base overrides;
vmBuilder = { name, vm }: ((import "${pkgs.path}/nixos/lib/eval-config.nix" {
system = "x86_64-linux";
system = pkgs.stdenv.hostPlatform.system;
modules = [ vm.cfg
({ config, lib, modulesPath, ... }: {
imports = [
+3 -1
View File
@@ -16,7 +16,9 @@ let
basePathConfigs =
lib.mapAttrsToList (_: cfg: cfg) (lib.filterAttrs (name: _: name != "config" && name != "data") serverCfg.path);
runtimePathConfigs = concatRuntimeLists "paths";
allSetupConfigs = map (app: ({ name = app.name; envFile = ""; } // app.runtime.setup)) appsList;
allSetupConfigs = builtins.filter
(setup: setup.script != null)
(map (app: ({ name = app.name; envFile = [ ]; } // app.runtime.setup)) appsList);
allCronsConfigs = concatRuntimeLists "cron";
allVMConfigs = builtins.filter (app: app.runtime.vm != null) appsList;
mkPathSetup = cfg: