diff options
Diffstat (limited to 'Hero/Prod.nix')
-rw-r--r-- | Hero/Prod.nix | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/Hero/Prod.nix b/Hero/Prod.nix index d7ab1fe..cc54f95 100644 --- a/Hero/Prod.nix +++ b/Hero/Prod.nix @@ -1,5 +1,16 @@ -{ config, pkgs, lib, ... }: -{ +{ bild, lib }: + +# Production server for herocomics.app + +bild.os { + imports = [ + ../Biz/OsBase.nix + ../Biz/Packages.nix + ../Biz/Users.nix + ./Service.nix + ]; + networking.hostName = "prod-herocomics"; + networking.domain = "herocomics.app"; boot.loader.grub.device = "/dev/vda"; fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; }; networking = { @@ -27,8 +38,18 @@ }; }; - services.udev.extraRules = '' - ATTR{address}=="b2:63:c4:e5:d6:36", NAME="eth0" - ''; + services = { + herocomics = { + enable = true; + port = 3000; + host = bild.ghc ./Host.hs; + node = bild.ghcjs ./Node.hs; + keep = "/var/lib/hero"; + }; + + udev.extraRules = '' + ATTR{address}=="b2:63:c4:e5:d6:36", NAME="eth0" + ''; + }; } |