From 4614971ab37977d1de87803a5d81d9fdc176ba21 Mon Sep 17 00:00:00 2001 From: dadada Date: Sun, 4 Jun 2023 01:41:33 +0200 Subject: [PATCH] ninurta: disable stage1 systemd --- nixos/ninurta/configuration.nix | 40 +++++++++++++++++---------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/nixos/ninurta/configuration.nix b/nixos/ninurta/configuration.nix index afff09f..7ef83a5 100644 --- a/nixos/ninurta/configuration.nix +++ b/nixos/ninurta/configuration.nix @@ -33,6 +33,7 @@ in message = "Refusing to store private keys in store"; }; + boot.kernelParams = [ "ip=dhcp" ]; boot.initrd = { network = { enable = true; @@ -44,25 +45,26 @@ in hostKeys = [ initrdPrivateKey ]; }; }; - systemd = { - enable = true; - network = { - enable = true; - links = { - "10-lan" = { - matchConfig.Name = "e*"; - linkConfig.MACAddressPolicy = "persistent"; - }; - }; - networks = { - "10-lan" = { - matchConfig.Name = "e*"; - networkConfig.DHCP = "ipv4"; - linkConfig.RequiredForOnline = "routable"; - }; - }; - }; - }; + # Kinda does not work? + # systemd = { + # enable = true; + # network = { + # enable = true; + # links = { + # "10-lan" = { + # matchConfig.Name = "e*"; + # linkConfig.MACAddressPolicy = "persistent"; + # }; + # }; + # networks = { + # "10-lan" = { + # matchConfig.Name = "e*"; + # networkConfig.DHCP = "ipv4"; + # linkConfig.RequiredForOnline = "routable"; + # }; + # }; + # }; + # }; }; fileSystems."/mnt/storage" = {