From bd2d37d3316a4ace382d74fd8539112278723bdb Mon Sep 17 00:00:00 2001 From: Stefan Kempinger Date: Tue, 17 Feb 2026 00:25:45 +0100 Subject: [PATCH] Nest boot settings under boot attribute --- heimserver/configuration.nix | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/heimserver/configuration.nix b/heimserver/configuration.nix index d72cc98..f4580cf 100644 --- a/heimserver/configuration.nix +++ b/heimserver/configuration.nix @@ -20,20 +20,22 @@ time.timeZone = "Europe/Vienna"; # Bootloader and kernel - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.kernelParams = [ - "vga=791" - "nomodeset" - ]; - boot.kernel.sysctl = { - "net.ipv4.ip_forward" = 1; - # "net.bridge.bridge-nf-call-iptables" = 1; - # "net.bridge.bridge-nf-call-ip6tables" = 1; - }; + boot = { + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + kernelParams = [ + "vga=791" + "nomodeset" + ]; + kernel.sysctl = { + "net.ipv4.ip_forward" = 1; + # "net.bridge.bridge-nf-call-iptables" = 1; + # "net.bridge.bridge-nf-call-ip6tables" = 1; + }; - boot.supportedFilesystems = [ "zfs" ]; - boot.zfs.forceImportRoot = false; + supportedFilesystems = [ "zfs" ]; + zfs.forceImportRoot = false; + }; hardware.graphics.enable = true; hardware.nvidia.open = true; @@ -58,7 +60,7 @@ } ]; defaultGateway = "192.168.69.1"; - #nameservers = [ "1.1.1.1" ]; + #nameservers = [ "127.0.0.1" ]; firewall.enable = true; firewall.allowedTCPPorts = [ 22