35 lines
978 B
Nix
35 lines
978 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
# Import environment-specific network parameters
|
|
env = import ../../../../network { };
|
|
in {
|
|
# Common settings for all servers in the production environment
|
|
# This file is imported by all server configurations
|
|
|
|
# Default DNS servers for this environment
|
|
environment.dnsServers = [ "10.40.128.10" "10.40.128.11" ];
|
|
|
|
# SMTP relay configuration
|
|
services.postfix = {
|
|
enable = true;
|
|
relayHost = "smtp.lagraula.fr";
|
|
relayPort = 587;
|
|
useTLS = true;
|
|
fromAddress = "noreply@prod.lagraula.fr";
|
|
};
|
|
|
|
# Proxy configuration for servers (none for now)
|
|
environment.systemPackages = with pkgs; [ ];
|
|
|
|
# Locale for servers (English)
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
# TODO: Move other common server settings here later
|
|
# Examples:
|
|
# - Server-specific users/groups
|
|
# - Server-specific packages
|
|
# - Server-specific services
|
|
# - Server-specific security policies
|
|
# - Server-specific monitoring/alerting
|
|
} |