prototype postfix config. disabled until i configure virtual alias map

This commit is contained in:
Colin 2022-04-27 08:48:40 +00:00
parent 9bad4ad0e1
commit d1883c7187
4 changed files with 21 additions and 7 deletions

View File

@ -7,13 +7,15 @@
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./fs-configuration.nix
./hardware-configuration.nix
./net-configuration.nix
./services-conf/gitea-configuration.nix
./services-conf/jellyfin-configuration.nix
./services-conf/matrix-configuration.nix
./services-conf/nginx-configuration.nix
./services-conf/pleroma-configuration.nix
./services-conf/postfix-configuration.nix
./services-conf/postgres-configuration.nix
./user-configuration.nix
];
@ -24,12 +26,6 @@
})
];
# TODO colin: re-enable the firewall
# networking.firewall.enable = false;
networking.firewall.allowedTCPPorts = [ 25 80 443 ];
# DLNA ports: https://jellyfin.org/docs/general/networking/index.html
networking.firewall.allowedUDPPorts = [ 1900 7359 ];
# XXX colin: UNMODIFIED DEFAULTS BELOW

10
net-configuration.nix Normal file
View File

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
networking.domain = "uninsane.org";
# networking.firewall.enable = false;
networking.firewall.allowedTCPPorts = [ 25 80 443 ];
# DLNA ports: https://jellyfin.org/docs/general/networking/index.html
networking.firewall.allowedUDPPorts = [ 1900 7359 ];
}

View File

@ -0,0 +1,6 @@
{ config, pkgs, lib, ... }:
{
#services.postfix.enable = true;
services.postfix.hostname = "mx.uninsane.org";
}

View File

@ -28,8 +28,10 @@
pkgs.htop
pkgs.matrix-synapse
pkgs.mix2nix
pkgs.netcat
pkgs.nmap
pkgs.ripgrep
pkgs.telnet
pkgs.sudo
(pkgs.vim_configurable.customize {
name = "vim";