summary refs log tree commit diff
path: root/host/Rory-nginx/configuration.nix
blob: 85f47c529ac7a2b9cb9be9719a19dceb03001cb6 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ config, pkgs, lib, ... }:

{
  imports =
    [
      ../../modules/base-server.nix
    ];

  networking = {
    hostName = "Rory-nginx";
    networkmanager.enable = false;
    wireless.enable = false;
      
    firewall = {
      enable = false;
    };
    interfaces.ens18.ipv4.addresses = [ { 
      address = "192.168.1.55";
      prefixLength = 24;
    } ];
  };

  services = {
    nginx = {
      enable = true;
      package = pkgs.nginxQuic;
      recommendedProxySettings = true;
      recommendedTlsSettings = true;
      virtualHosts = {
        "siliconheaven.thearcanebrony.net" = import ./hosts/thearcanebrony.net/siliconheaven.nix;
        "lfs.thearcanebrony.net" = import ./hosts/thearcanebrony.net/lfs.nix;
        "http.thearcanebrony.net" = import ./hosts/thearcanebrony.net/http.nix;
        "thearcanebrony.net" = import ./hosts/thearcanebrony.net/root.nix;
        "sentry.thearcanebrony.net" = import ./hosts/thearcanebrony.net/sentry.nix;
        "awooradio.thearcanebrony.net" = import ./hosts/thearcanebrony.net/awooradio.nix;
        "search.thearcanebrony.net" = import ./hosts/thearcanebrony.net/search.nix;
        "git.thearcanebrony.net" = import ./hosts/thearcanebrony.net/git.nix;
        "files.thearcanebrony.net" = import ./hosts/thearcanebrony.net/files.nix;
        "spigotav.thearcanebrony.net" = import ./hosts/thearcanebrony.net/spigotav.nix;
        "terra.thearcanebrony.net" = import ./hosts/thearcanebrony.net/terra.nix;
        "vives.thearcanebrony.net" = import ./hosts/thearcanebrony.net/vives.nix;
        "*.bots.thearcanebrony.net" = import ./hosts/thearcanebrony.net/bots.nix;
        "lfs.rory.gay" = import ./hosts/rory.gay/lfs.nix;
        "tunnel.rory.boo" = import ./hosts/rory.boo/tunnel.nix;
        "boorunav.com" = import ./hosts/boorunav.com/root.nix;
        "catgirlsaresexy.com" = import ./hosts/catgirlsaresexy.com/root.nix;
        "sugarcanemc.org" = import ./hosts/sugarcanemc.org/root.nix;
      };
    };
  };

  sound.enable = false;
  hardware.pulseaudio.enable = false;

  system.stateVersion = "22.11"; # DO NOT EDIT!
}