summaryrefslogtreecommitdiff
path: root/deploy.nix
blob: d3a23d9e368541a441b216ba14ee0b57125c80c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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";
            };
          };
        };
      };
    };
  };
}