{ pkgs, config, lib, grapevine, conduit, conduwuit, nixpkgs-Draupnir, ... }: { imports = [ ../../modules/base-server.nix ../../modules/users/levi.nix ../../modules/users/db2k.nix ../../modules/users/ks.nix ../../modules/users/Alice.nix ./services/postgres.nix ./services/matrix/root.nix ./services/nginx/nginx.nix #./services/jitsi.nix ./services/cgit.nix #./services/ollama.nix ./services/prometheus.nix ]; users.groups.ocp = { }; networking = { hostName = "Rory-nginx"; interfaces.ens18.ipv4.addresses = [ { address = "192.168.1.2"; prefixLength = 24; } ]; interfaces.ens19.ipv4.addresses = [ { address = "10.10.10.2"; prefixLength = 16; } ]; defaultGateway.interface = "ens18"; nat = { enable = true; internalInterfaces = [ "ve-+" "vb-+" ]; externalInterface = "ens18"; enableIPv6 = false; }; enableIPv6 = lib.mkForce false; nameservers = lib.mkOverride [ "192.168.1.1" ]; }; environment.etc."resolv.conf".text = lib.mkOverride '' nameserver 192.168.1.1 ''; monitoring = { monitorAll = true; localPrometheus = true; exposePrometheus = true; localGrafana = true; exposeGrafana = true; nginxHost = "monitoring.rory.gay"; nginxSsl = true; }; nixpkgs.config.permittedInsecurePackages = [ "olm-3.2.16" ]; services.irqbalance.enable = true; environment.memoryAllocator.provider = "jemalloc"; #containers."pluralcontactbotpoc" = import ./services/containers/pluralcontactbotpoc/container.nix { # inherit pkgs lib; # conduit = grapevine; #}; containers."matrixunittests" = import ./services/containers/matrixunittests/container.nix { inherit pkgs lib grapevine; }; containers."matrixunittests-conduit" = import ./services/containers/matrixunittests-conduit/container.nix { inherit pkgs lib; conduit = conduit; }; services.pgadmin = { enable = true; initialEmail = "root@localhost.localdomain"; initialPasswordFile = "/etc/matrix-user-pass"; }; containers."draupnir-cme" = import ./services/containers/draupnir-cme/container.nix { inherit pkgs lib nixpkgs-Draupnir; }; #containers."draupnir-linux-mint" = import ./services/containers/draupnir-linux-mint/container.nix { inherit pkgs lib nixpkgs-Draupnir; }; system.stateVersion = "22.11"; # DO NOT EDIT! environment.systemPackages = with pkgs; [ waypipe ]; }