aboutsummaryrefslogtreecommitdiff
path: root/nix/systems/spontaneity/default.nix
blob: 759782bd85c50112c8ca4751c44a64983622ec23 (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
37
38
39
{ config, lib, ... }:
{
  imports = [
    # nixos-anywhere generates this file
    ./hardware-configuration.nix
    ../../disko/vda-simple.nix
    ../../modules/default.nix
    ../home.nix
  ];
  config = {
    monorepo = {
      profiles = {
        server.enable = true;
        ttyonly.enable = true;
        grub.enable = true;
      };
    };
    networking = {
      firewall.allowedTCPPorts = [
        80
        443
      ];
      domains = {
        enable = true;
        baseDomains = {
          "${config.monorepo.vars.remoteHost}" = {
            a.data = "66.42.84.130";
            aaaa.data = "2001:19f0:5401:10d0:5400:5ff:fe4a:7794";
          };
        };
        subDomains = {
              "${config.monorepo.vars.remoteHost}" = {};
          "matrix.${config.monorepo.vars.remoteHost}" = {};
          "www.${config.monorepo.vars.remoteHost}" = {};
        };
      };
    };
  };
}