summaryrefslogtreecommitdiff
path: root/Biz.nix
blob: a76fd8ce1197a5a66ab48605ff9c829418ca1d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env run.sh
# 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
    ./Biz/PodcastItLater/Web.nix
    ./Biz/PodcastItLater/Worker.nix
  ];
  networking.hostName = "biz";
  networking.domain = "storybook.bensima.com";
  time.timeZone = "America/New_York";
  services.storybook = {
    enable = false;
    package = bild.run ./Biz/Storybook.py;
  };
  services.podcastitlater-web = {
    enable = true;
    package = bild.run ./Biz/PodcastItLater/Web.py;
  };
  services.podcastitlater-worker = {
    enable = true;
    package = bild.run ./Biz/PodcastItLater/Worker.py;
  };
}