change boot optimization to laptop, can't use a static ip with systemd-networkd

This commit is contained in:
2025-03-12 16:52:35 +01:00
parent 347457d3b9
commit f733fa707c
3 changed files with 7 additions and 5 deletions

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ # # By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2025/02/09 01:43:46 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.networkmanager.enable = lib.mkDefault true;
networking.dhcpcd.enable = false;
systemd.network.enable = true;
networking.useNetworkd = true;
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";

View File

@ -9,6 +9,10 @@
networking.wireless.enable = true; networking.wireless.enable = true;
networking.networkmanager.enable = false; networking.networkmanager.enable = false;
networking.dhcpcd.enable = false;
systemd.network.enable = true;
networking.useNetworkd = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
acpi acpi
tlp tlp

View File

@ -53,7 +53,8 @@
address = "192.168.1.24"; address = "192.168.1.24";
prefixLength = 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"]; nameservers = ["8.8.8.8" "8.8.4.4" "1.1.1.1"];
hostId = "68290da7"; hostId = "68290da7";
}; };