diff options
-rw-r--r-- | deploy.nix | 51 |
1 files changed, 33 insertions, 18 deletions
@@ -1,21 +1,36 @@ -{ config, lib, pkgs }: - nixpkgs = { - config = { - allowUnfree = true; - allowBroken = true; +# Nix config for the main biz machine. + +{ pkgs +, config +, ..., +}: + +{ + imports = [ ./ibb/module.nix ]; + nixpkgs.config.packageOverrides = pkgs: { + ibb = import ./ibb/default.nix {}; + }; + services = { + + ibb.enable = true; + + nginx = { + enable = true; + recommendedGzipSettings = true; + recommendedOptimisation = true; + recommendedProxySettings = true; + recommendedTlsSettings = true; + virtualHosts = { + "ibb.buildmindful.com" = { + forceSSL = true; + enableACME = true; + locations = { + "/" = { + proxyPass = "http://localhost:3000"; + }; + }; + }; + }; }; }; - services.nginx = { - enable = true; - recommendedGzipSettings = true; - recommendedOptimisation = true; - recommendedProxySettings = true; - recommendedTlsSettings = true; - virtualHosts."ibb.buildmindful.com" = { - enableACME = true; - forceSSL = true; - root = "/"; - locations."/".proxyPass = "https://localhost:3000"; - } } - |