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.
This commit is contained in:
2026-05-11 14:46:33 +02:00
parent 8e22e05d2b
commit d07661561b
8 changed files with 65 additions and 58 deletions
+2 -8
View File
@@ -1,15 +1,9 @@
{ config, pkgs, lib, ... }:
{
# NTP servers for this environment
ntpServers = [
"10.10.128.1" # IPv4 gateway
"fd00::1" # IPv6 gateway
];
# Time zone
# Time zone for this environment
timeZone = "Europe/Paris";
# Hardware clock setting
hardwareClock = "UTC";
}
}