From f4a087e5ebeb34ec11e7b29577a325255f613286 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 17 Nov 2024 11:34:51 +0530 Subject: kay: reborn, update hw --- os/kay/hardware-configuration.nix | 5 +---- os/kay/modules/network.nix | 8 ++++++-- os/kay/modules/router.nix | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'os/kay') diff --git a/os/kay/hardware-configuration.nix b/os/kay/hardware-configuration.nix index 705dc0c..f90fc76 100644 --- a/os/kay/hardware-configuration.nix +++ b/os/kay/hardware-configuration.nix @@ -4,10 +4,7 @@ imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot = { - loader = { - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; + loader.systemd-boot.enable = true; kernelModules = [ "kvm-intel" ]; blacklistedKernelModules = [ "nouveau" ]; diff --git a/os/kay/modules/network.nix b/os/kay/modules/network.nix index 929fb1b..339f15b 100644 --- a/os/kay/modules/network.nix +++ b/os/kay/modules/network.nix @@ -3,7 +3,7 @@ let inetVlan = 722; voipVlan = 1849; - wanInterface = "enp4s0"; + wanInterface = "enp3s0"; nameServer = "1.0.0.1"; in { @@ -32,7 +32,11 @@ in }; }; - interfaces.${voipVlanIface}.useDHCP = true; + interfaces = { + ${voipVlanIface}.useDHCP = true; + ${wanInterface}.macAddress = "c4:54:44:d5:17:68"; + }; + dhcpcd.extraConfig = '' interface ${voipVlanIface} ipv4only diff --git a/os/kay/modules/router.nix b/os/kay/modules/router.nix index 45c9dff..0d01465 100644 --- a/os/kay/modules/router.nix +++ b/os/kay/modules/router.nix @@ -1,7 +1,7 @@ { ... }: let wanInterface = "ppp0"; - lanInterface = "enp0s20u1"; + lanInterface = "enp8s0f3u1"; subnet = "10.0.0.0"; prefix = 24; host = "10.0.0.1"; -- cgit v1.2.3