Files
nixos-infra-framework/environments/sample/hosts/servers/default.nix
T
xavier d07661561b refactor: move host-specific settings to hosts directory
- Move defaultNameServers from network/dns.nix to hosts/servers/default.nix and hosts/workstations/default.nix
- Move SMTP configuration from network/smtp.nix to hosts/servers/default.nix and hosts/workstations/default.nix
- Move proxy configuration from network/proxy.nix to hosts/servers/default.nix and hosts/workstations/default.nix
- Move NTP servers from network/time.nix to hosts/default.nix
- Remove network/proxy.nix and network/smtp.nix (host-specific settings don't belong in network/)
- Update network/default.nix to only import dns.nix and time.nix

This refactoring separates environment-specific network parameters (domain, timezone)
from host-specific settings (DNS servers, SMTP, proxy, NTP servers), making the
configuration more logical and maintainable.
2026-05-11 14:46:33 +02:00

34 lines
927 B
Nix

{ config, pkgs, lib, ... }:
let
# Import environment-specific network parameters
env = import ../../../network { };
in {
# Common settings for all servers in the sample environment
# This file is imported by all server configurations
# Default DNS servers for this environment
networking.nameServers = [ "10.40.128.10" ];
# SMTP relay configuration
services.postfix = {
enable = true;
relayHost = "smtp.lagraula.fr";
relayPort = 587;
useTLS = true;
fromAddress = "noreply@sample.lagraula.fr";
};
# Proxy configuration for servers (none for now)
environment.systemPackages = with pkgs; [ ];
# 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
# - Locale: en_US.UTF-8 (for servers)
}