From db0035dc20b1b83124498ae7558fb782482edaf6 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 27 Nov 2023 18:41:49 +0100 Subject: add new kuro config --- kuro/configuration.nix | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'kuro/configuration.nix') diff --git a/kuro/configuration.nix b/kuro/configuration.nix index b8807c8..aaeb0c9 100644 --- a/kuro/configuration.nix +++ b/kuro/configuration.nix @@ -14,19 +14,21 @@ /data/nixos/common.nix ]; - # host name - networking.hostName = "kuro"; + # amd graphics + hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ]; - # main network interface via systemd-networkd + # use systemd-networkd, fixed IPv4, dynamic IPv6 + networking.hostName = "kuro"; networking.useDHCP = false; - systemd.network.enable = true; - systemd.network.networks."10-lan" = { - matchConfig.Name = "enp2s0"; - networkConfig.DHCP = "yes"; - linkConfig.RequiredForOnline = "routable"; + networking.nameservers = [ "192.168.13.1" ]; + systemd.network = { + enable = true; + networks."10-wan" = { + matchConfig.Name = "enp2s0"; + address = [ "192.168.13.101/24" ]; + routes = [ { routeConfig.Gateway = "192.168.13.1"; } ]; + networkConfig.IPv6AcceptRA = true; + linkConfig.RequiredForOnline = "routable"; + }; }; - - # amd graphics - hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ]; - hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ amdvlk ]; } -- cgit v1.2.3