summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";
- }
}
-