hetzner-cloud: enable qemu-agent for password resets (#455)

This commit is contained in:
Jonas Chevalier 2024-07-11 11:53:08 +02:00 committed by GitHub
parent 3ba7dcad7b
commit 2888a2286c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -20,7 +20,9 @@ Enables cloud-init but turns of non-working dhcp.
Hardware configuration for <https://www.hetzner.com/cloud> instances.
The main difference here is that cloud-init is enabled.
The main difference here is that:
1. cloud-init is enabled.
2. the qemu agent is running, to allow password reset to function.
### `nixosModules.hardware-hetzner-cloud-arm`

View File

@ -1,4 +1,4 @@
{ config, modulesPath, lib, ... }:
{ config, modulesPath, lib, pkgs, ... }:
{
imports = [
../../mixins/cloud-init.nix
@ -13,5 +13,10 @@
networking.useNetworkd = true;
networking.useDHCP = false;
# Needed by the Hetzner Cloud password reset feature.
services.qemuGuest.enable = lib.mkDefault true;
# https://discourse.nixos.org/t/qemu-guest-agent-on-hetzner-cloud-doesnt-work/8864/2
systemd.services.qemu-guest-agent.path = [ pkgs.shadow ];
};
}