feat: better tree view
This commit is contained in:
1 parent
10eb2f7b98
commit
0c30e71261
20 files changed
+1148
-343
No files matched your search
+2
-1
@@ -6,6 +6,7 @@
|
||||
}:
|
||||
let
|
||||
demoService = spec: {
|
||||
inherit (spec) description;
|
||||
after = map (dependency: "${dependency}.service") (spec.after or [ ]);
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
@@ -30,7 +31,7 @@ in
|
||||
boot.initrd.systemd = {
|
||||
enable = true;
|
||||
services.demo-initrd-probe = {
|
||||
description = "bootvine demo: slow initrd step";
|
||||
description = "Slow hardware probe";
|
||||
wantedBy = [ "initrd.target" ];
|
||||
before = [ "initrd.target" ];
|
||||
unitConfig.DefaultDependencies = false;
|
||||
|
||||
+14
-2
@@ -3,19 +3,23 @@
|
||||
initrdProbeSeconds = "6";
|
||||
services = {
|
||||
demo-disk = {
|
||||
description = "Scratch disk preparation";
|
||||
seconds = "2";
|
||||
stopSeconds = "2";
|
||||
};
|
||||
demo-db = {
|
||||
description = "Demo database";
|
||||
seconds = "3";
|
||||
stopSeconds = "3";
|
||||
after = [ "demo-disk" ];
|
||||
};
|
||||
demo-cache = {
|
||||
description = "In-memory cache";
|
||||
seconds = "1.5";
|
||||
stopSeconds = "1";
|
||||
};
|
||||
demo-web = {
|
||||
description = "Web frontend";
|
||||
seconds = "2";
|
||||
stopSeconds = "2";
|
||||
after = [
|
||||
@@ -23,13 +27,21 @@
|
||||
"demo-cache"
|
||||
];
|
||||
};
|
||||
demo-fetch.seconds = "4";
|
||||
demo-fetch = {
|
||||
description = "Remote content sync";
|
||||
seconds = "4";
|
||||
};
|
||||
demo-flaky = {
|
||||
description = "Flaky health check";
|
||||
seconds = "1";
|
||||
fails = true;
|
||||
};
|
||||
demo-slow.seconds = "8";
|
||||
demo-slow = {
|
||||
description = "Slow warm-up job";
|
||||
seconds = "8";
|
||||
};
|
||||
demo-report = {
|
||||
description = "Startup report";
|
||||
seconds = "1";
|
||||
after = [
|
||||
"demo-web"
|
||||
|
||||
+2
-2
@@ -14,7 +14,7 @@ let
|
||||
name: spec:
|
||||
writeText "${name}.service" (toUnitFile {
|
||||
Unit = {
|
||||
Description = "bootvine demo: ${name}";
|
||||
Description = spec.description;
|
||||
After = map (dependency: "${dependency}.service") (spec.after or [ ]);
|
||||
};
|
||||
Service = {
|
||||
@@ -34,7 +34,7 @@ let
|
||||
|
||||
targetFile = writeText "${demoUnits.target}.target" (toUnitFile {
|
||||
Unit = {
|
||||
Description = "bootvine demo target";
|
||||
Description = "bootvine demo services";
|
||||
Wants = serviceNames;
|
||||
After = serviceNames;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user