summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-01-30 09:46:10 -0800
committerBen Sima <ben@bsima.me>2019-01-30 09:46:10 -0800
commit6750622c47a90060159544c8c928ef3440a43ec9 (patch)
tree547b38edc50e5df1ab84c3f22462384654a92e11
parent6882b1b1263fa636952732d489e31d946c7f39d2 (diff)
Cleanup deploy.nix
Mostly formatting tbh.
-rw-r--r--deploy.nix51
1 files changed, 33 insertions, 18 deletions
diff --git a/deploy.nix b/deploy.nix
index 3fb458b..d3a23d9 100644
--- a/deploy.nix
+++ b/deploy.nix
@@ -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";
- }
}
-