Added forum config

This commit is contained in:
root
2021-01-20 21:51:43 -06:00
parent b3a3fe4bbd
commit 3cb6dc51fb
13 changed files with 856 additions and 111 deletions
+8 -10
View File
@@ -1,5 +1,4 @@
{ config, lib, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.fudo.mail-server;
@@ -71,9 +70,12 @@ in rec {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
'';
trusted-network-string = optionalString ((length fudo-cfg.local-networks) > 0)
trusted-network-string =
optionalString ((length fudo-cfg.local-networks) > 0)
(concatStringsSep "\n"
(map (network: "allow ${network};") fudo-cfg.local-networks)) + "\ndeny all;";
(map (network: "allow ${network};") fudo-cfg.local-networks)) + ''
deny all;'';
in {
"${cfg.hostname}" = {
@@ -136,13 +138,9 @@ in rec {
config = { config, pkgs, ... }: {
environment.systemPackages = with pkgs; [
nmap
];
environment.systemPackages = with pkgs; [ nmap ];
imports = [
./mail.nix
];
imports = [ ./mail.nix ];
environment = {
etc = {