From 32d31ae8d1ef5d5aeb03a7fe7e6a294e14905505 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 20 Dec 2024 13:21:43 -0500 Subject: Build and deploy storybook I put the storybook into a new Biz.nix deploy target. The idea here is that any Biz/* targets should be hosted by this one VM for simplicity. Over time I can grow this as need be, but this should work to host a few services. --- Biz.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Biz.nix (limited to 'Biz.nix') diff --git a/Biz.nix b/Biz.nix new file mode 100644 index 0000000..c87f91a --- /dev/null +++ b/Biz.nix @@ -0,0 +1,25 @@ +# nunya +{ 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 + ./Omni/Packages.nix + ./Omni/Users.nix + ./Biz/Storybook.nix + ]; + networking.hostName = "biz"; + networking.domain = "storybook.bensima.com"; + time.timeZone = "America/New_York"; + services.storybook = { + enable = true; + package = bild.run ./Biz/Storybook.py; + }; +} -- cgit v1.2.3