enable bind dns and chrony ntp server and set them up in default.nix

This commit is contained in:
goeranh 2026-03-13 22:14:45 +01:00
parent 7d01f35fd0
commit 006c95424f
No known key found for this signature in database
2 changed files with 20 additions and 9 deletions

View file

@ -26,8 +26,8 @@ in
{
networking.nameservers = [
"141.56.51.1"
"141.56.1.1"
"141.56.1.2"
];
boot.kernelPackages = pkgs.linuxPackages_latest;
@ -52,6 +52,14 @@ in
time.timeZone = "Europe/Berlin";
# Use proxy as NTP server for time synchronization
# Disable in containers as they inherit time from the host
services.chrony = {
enable = !config.boot.isContainer;
servers = [ "141.56.51.1" ];
enableNTS = false;
};
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
@ -63,10 +71,9 @@ in
services.nginx.recommendedOptimisation = true;
services.nginx.recommendedGzipSettings = true;
services.nginx.recommendedProxySettings = true;
#### Mit der Anwendung Nginx soll die (ausschließliche) Verwendung von https (http mit TLS), statt http ermoeglicht werden.
#### Mit der Anwendung Nginx soll die (ausschließliche) Verwendung von https (http mit TLS), statt http ermoeglicht werden.
services.nginx.recommendedTlsSettings = true;
users.users = {
# erstmal nur mit root
# administration = {