From dd7b872694441a96b8b042ccbc4b63a96d0b89b9 Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 4 Jul 2024 14:59:36 +0200 Subject: Nixfmt --- host/Rory-nginx/configuration.nix | 78 +++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 32 deletions(-) (limited to 'host/Rory-nginx/configuration.nix') diff --git a/host/Rory-nginx/configuration.nix b/host/Rory-nginx/configuration.nix index 648d8d5..b85a75e 100755 --- a/host/Rory-nginx/configuration.nix +++ b/host/Rory-nginx/configuration.nix @@ -1,43 +1,57 @@ -{ config, pkgs, lib, grapevine, conduit, conduwuit, ... }: +{ + config, + pkgs, + lib, + grapevine, + conduit, + conduwuit, + ... +}: { - imports = - [ - ../../modules/base-server.nix - ../../modules/users/levi.nix - ../../modules/users/db2k.nix - ../../modules/users/ks.nix - ../../modules/users/Alice.nix + 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/discordbots.nix - ./services/matrix/root.nix - ./services/nginx/nginx.nix - #./services/jitsi.nix - ./services/cgit.nix - #./services/ollama.nix - ./services/prometheus.nix - ]; - users.groups.ocp = {}; + ./services/postgres.nix + ./services/discordbots.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; - } ]; + 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"; -# extraHosts = '' -# 127.0.0.1 rory.gay -# 127.0.0.1 matrix.rory.gay -# 127.0.0.1 conduit.rory.gay -# ''; + # extraHosts = '' + # 127.0.0.1 rory.gay + # 127.0.0.1 matrix.rory.gay + # 127.0.0.1 conduit.rory.gay + # ''; nat = { enable = true; - internalInterfaces = [ "ve-+" "vb-+" ]; + internalInterfaces = [ + "ve-+" + "vb-+" + ]; externalInterface = "ens18"; #enableIPv6 = true; }; -- cgit 1.4.1