Cleanup
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
{ name, ... }:
|
||||
throw "Container app `${name}` is not implemented yet."
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
{...}:{
|
||||
|
||||
}
|
||||
{ name, ... }:
|
||||
throw "Container app `${name}` is not implemented yet."
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user