From 00cf70110af4661b20e19b1cd42eabc224abc573 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 8 Jan 2024 22:44:51 +0530 Subject: common: disable dhcpcd --- common.nix | 1 + hosts/cez/modules/network.nix | 1 - hosts/kay/modules/router.nix | 1 - hosts/mox/modules/network.nix | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common.nix b/common.nix index b8b69cd..ff47d90 100644 --- a/common.nix +++ b/common.nix @@ -32,6 +32,7 @@ in }; time.timeZone = "Asia/Kolkata"; + networking.useDHCP = false; environment = { binsh = "${lib.getExe pkgs.dash}"; systemPackages = with pkgs; [ diff --git a/hosts/cez/modules/network.nix b/hosts/cez/modules/network.nix index 3321e98..429bf89 100644 --- a/hosts/cez/modules/network.nix +++ b/hosts/cez/modules/network.nix @@ -3,7 +3,6 @@ { networking = { hostName = "cez"; - useDHCP = false; firewall.enable = false; wireless.iwd = { diff --git a/hosts/kay/modules/router.nix b/hosts/kay/modules/router.nix index 2fd2f29..d2785a5 100644 --- a/hosts/kay/modules/router.nix +++ b/hosts/kay/modules/router.nix @@ -21,7 +21,6 @@ in externalInterface = wanInterface; internalInterfaces = [ lanInterface ]; }; - useDHCP = false; interfaces."${lanInterface}" = { ipv4.addresses = [{ address = host; diff --git a/hosts/mox/modules/network.nix b/hosts/mox/modules/network.nix index bf7c690..dde2e49 100644 --- a/hosts/mox/modules/network.nix +++ b/hosts/mox/modules/network.nix @@ -6,7 +6,6 @@ let in { networking = { - useDHCP = false; interfaces.${wan}.ipv4.addresses = [{ address = "10.0.8.101"; prefixLength = 16; -- cgit v1.2.3