From 47b005a640a4e2c2729415b15c0b50cb04de6cab Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 12 Jun 2023 19:32:36 +0200 Subject: fixup kuro config --- kuro/configuration.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'kuro/configuration.nix') diff --git a/kuro/configuration.nix b/kuro/configuration.nix index 07d2abe..b8807c8 100644 --- a/kuro/configuration.nix +++ b/kuro/configuration.nix @@ -1,6 +1,6 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). +# and in the NixOS manual (accessible by running `nixos-help`). { config, pkgs, ... }: @@ -11,10 +11,22 @@ ./hardware-configuration.nix # Shared config of all machines - /home/cullmann/install/nixos/common.nix + /data/nixos/common.nix ]; - # host name & id + # host name networking.hostName = "kuro"; - networking.hostId = "862cf3b5"; + + # main network interface via systemd-networkd + networking.useDHCP = false; + systemd.network.enable = true; + systemd.network.networks."10-lan" = { + matchConfig.Name = "enp2s0"; + networkConfig.DHCP = "yes"; + 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