From cd67657ae2dfcf2634e983030b544638ef9beb1b Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Thu, 21 Sep 2023 22:05:52 +0100 Subject: nixos/virtualisation: use systemd-networkd for OCI --- nixos/modules/virtualisation/oci-common.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nixos/modules/virtualisation') diff --git a/nixos/modules/virtualisation/oci-common.nix b/nixos/modules/virtualisation/oci-common.nix index 19e4c9fa898b..ac9405e3ecfa 100644 --- a/nixos/modules/virtualisation/oci-common.nix +++ b/nixos/modules/virtualisation/oci-common.nix @@ -53,4 +53,8 @@ in networking.timeServers = [ "169.254.169.254" ]; services.openssh.enable = true; + + # Otherwise the instance may not have a working network-online.target, + # making the fetch-ssh-keys.service fail + networking.useNetworkd = true; } -- cgit 1.4.1