mirror of
https://github.com/nix-community/srvos.git
synced 2024-09-11 14:17:02 +03:00
hetzner-cloud: enable qemu-agent for password resets (#455)
This commit is contained in:
parent
3ba7dcad7b
commit
2888a2286c
@ -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`
|
||||
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user