summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configs/initrd/sshd.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/configs/initrd/sshd.nix b/configs/initrd/sshd.nix
index eff8480..93c4ec9 100644
--- a/configs/initrd/sshd.nix
+++ b/configs/initrd/sshd.nix
@@ -14,4 +14,10 @@
boot.initrd.secrets = {
"/etc/ssh/ssh_host_rsa_key" = <secrets/initrd/ssh_host_rsa_key>;
};
+
+ boot.initrd.systemd.network.enable = config.boot.initrd.systemd.enable;
+ boot.initrd.systemd.network.networks."10-dhcp" = {
+ matchConfig.Name = [ "en*" ];
+ DHCP = "yes";
+ };
}