summaryrefslogtreecommitdiff
path: root/Biz.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Biz.nix')
-rwxr-xr-xBiz.nix36
1 files changed, 21 insertions, 15 deletions
diff --git a/Biz.nix b/Biz.nix
index 7435c08..3ccf955 100755
--- a/Biz.nix
+++ b/Biz.nix
@@ -1,16 +1,22 @@
#!/usr/bin/env run.sh
# nunya
-{bild, ...}: let
- # Pre-declared targets prevent recursive builds during NixOS evaluation.
- # All bild.run calls happen once at this top level.
- targets = import ./Biz/Targets.nix {inherit bild;};
-in
- # This is the biz hosting service. Currently it defines a base OS similar to
- # Omni/Cloud.nix et al and starts each Biz/* thing as a systemd service. A
- # better solution might be to define each Biz/* thing as a container, and then
- # wire them together as necessary here, but I don't know how that works so I'll
- # just stick to this method for now.
- bild.os {
+#
+# To build the NixOS system:
+# 1. First build packages: nix-build Biz/Packages.nix
+# 2. Then build OS with packages: nix-build Biz.nix --arg packages "import ./Biz/Packages.nix {}"
+#
+# Or use the wrapper: Omni/Ide/run.sh Biz.nix
+{
+ bild,
+ packages ? import ./Biz/Packages.nix {inherit bild;},
+ ...
+}:
+# This is the biz hosting service. Currently it defines a base OS similar to
+# Omni/Cloud.nix et al and starts each Biz/* thing as a systemd service. A
+# better solution might be to define each Biz/* thing as a container, and then
+# wire them together as necessary here, but I don't know how that works so I'll
+# just stick to this method for now.
+bild.os {
imports = [
./Omni/Cloud/Hardware.nix
./Omni/Os/Base.nix
@@ -25,14 +31,14 @@ in
time.timeZone = "America/New_York";
services.storybook = {
enable = false;
- package = targets.storybook;
+ package = packages.storybook;
};
services.podcastitlater-web = {
enable = true;
- package = targets.podcastitlater-web;
+ package = packages.podcastitlater-web;
};
services.podcastitlater-worker = {
enable = true;
- package = targets.podcastitlater-worker;
+ package = packages.podcastitlater-worker;
};
- }
+}