From 05ce0e6f5c3782333b086ddd84bf972e00f41a3e Mon Sep 17 00:00:00 2001 From: oddlama Date: Mon, 24 Apr 2023 18:41:05 +0200 Subject: [PATCH] feat: enable initrd ssh unlock for all machines --- hosts/nom/default.nix | 1 + hosts/nom/net.nix | 5 +++++ hosts/zackbiene/net.nix | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/hosts/nom/default.nix b/hosts/nom/default.nix index c7f1b32..9397025 100644 --- a/hosts/nom/default.nix +++ b/hosts/nom/default.nix @@ -15,6 +15,7 @@ ../common/hardware/intel.nix ../common/efi.nix + ../common/initrd-ssh.nix ../common/laptop.nix ../common/sound.nix ../common/yubikey.nix diff --git a/hosts/nom/net.nix b/hosts/nom/net.nix index d677d93..0723e58 100644 --- a/hosts/nom/net.nix +++ b/hosts/nom/net.nix @@ -4,6 +4,11 @@ wireless.iwd.enable = true; }; + boot.initrd.systemd.network = { + enable = true; + networks = {inherit (config.systemd.network.networks) "10-lan1";}; + }; + systemd.network.networks = { "10-lan1" = { DHCP = "yes"; diff --git a/hosts/zackbiene/net.nix b/hosts/zackbiene/net.nix index bdcd9a5..886b790 100644 --- a/hosts/zackbiene/net.nix +++ b/hosts/zackbiene/net.nix @@ -11,6 +11,11 @@ in { networking.hostId = nodeSecrets.networking.hostId; + boot.initrd.systemd.network = { + enable = true; + networks = {inherit (config.systemd.network.networks) "10-lan1";}; + }; + systemd.network.networks = { "10-lan1" = { DHCP = "yes";