diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-11-17 11:34:51 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-11-17 12:55:20 +0530 |
commit | f4a087e5ebeb34ec11e7b29577a325255f613286 (patch) | |
tree | 619166b678abe82475d564f06c3f9fcc4bdd0630 | |
parent | 0bdaac634da5e187fae86ec25ff0f7390d3a0042 (diff) |
kay: reborn, update hw
-rw-r--r-- | os/kay/hardware-configuration.nix | 5 | ||||
-rw-r--r-- | os/kay/modules/network.nix | 8 | ||||
-rw-r--r-- | os/kay/modules/router.nix | 2 |
3 files changed, 8 insertions, 7 deletions
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"; |