From f733fa707cdfa3860c6282102f0919b2e57d6734 Mon Sep 17 00:00:00 2001 From: tomoron Date: Wed, 12 Mar 2025 16:52:35 +0100 Subject: [PATCH] change boot optimization to laptop, can't use a static ip with systemd-networkd --- osConfigs/global.nix | 5 +---- osConfigs/hosts/laptop.nix | 4 ++++ osConfigs/hosts/server.nix | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/osConfigs/global.nix b/osConfigs/global.nix index 934fa30..fc73a3a 100644 --- a/osConfigs/global.nix +++ b/osConfigs/global.nix @@ -6,7 +6,7 @@ # By: tomoron +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/02/09 01:43:46 by tomoron #+# #+# # -# Updated: 2025/03/12 16:20:09 by tomoron ### ########.fr # +# Updated: 2025/03/12 16:49:41 by tomoron ### ########.fr # # # # **************************************************************************** # @@ -33,9 +33,6 @@ }; networking.networkmanager.enable = lib.mkDefault true; - networking.dhcpcd.enable = false; - systemd.network.enable = true; - networking.useNetworkd = true; time.timeZone = "Europe/Paris"; diff --git a/osConfigs/hosts/laptop.nix b/osConfigs/hosts/laptop.nix index 4593630..07fbeac 100644 --- a/osConfigs/hosts/laptop.nix +++ b/osConfigs/hosts/laptop.nix @@ -9,6 +9,10 @@ networking.wireless.enable = true; networking.networkmanager.enable = false; + networking.dhcpcd.enable = false; + systemd.network.enable = true; + networking.useNetworkd = true; + environment.systemPackages = with pkgs; [ acpi tlp diff --git a/osConfigs/hosts/server.nix b/osConfigs/hosts/server.nix index b6b9cba..3b4a7a5 100644 --- a/osConfigs/hosts/server.nix +++ b/osConfigs/hosts/server.nix @@ -53,7 +53,8 @@ address = "192.168.1.24"; prefixLength = 24; } ]; - defaultGateway = "192.168.1.254"; + defaultGateway.address = "192.168.1.254"; + defaultGateway.interface = "eth0"; nameservers = ["8.8.8.8" "8.8.4.4" "1.1.1.1"]; hostId = "68290da7"; };