summaryrefslogtreecommitdiffstats
path: root/configs/initrd/sshd.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-04-20 17:08:53 +0200
committertv <tv@krebsco.de>2026-04-20 17:08:53 +0200
commite1408a43dddd1997c3f2fb9b582f9db94f8e1214 (patch)
tree03166c5685e4b63f3302bb89c6d51a275f894e3f /configs/initrd/sshd.nix
parent0271f0db23c1453fe4caf2f6296af19ba3c27715 (diff)
initrd/sshd: admit systemd
Diffstat (limited to 'configs/initrd/sshd.nix')
-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";
+ };
}