diff options
author | Ben Sima <ben@bsima.me> | 2019-01-30 09:46:10 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-01-30 09:46:10 -0800 |
commit | 6750622c47a90060159544c8c928ef3440a43ec9 (patch) | |
tree | 547b38edc50e5df1ab84c3f22462384654a92e11 | |
parent | 6882b1b1263fa636952732d489e31d946c7f39d2 (diff) |
Cleanup deploy.nix
Mostly formatting tbh.
-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"; - } } - |