onyx: (hyper-v) use daemon flag instead of env var to disable tailscale tpm
Charlotte Som charlotte@som.codes
Thu, 12 Mar 2026 17:26:46 +0000
1 files changed,
7 insertions(+),
9 deletions(-)
jump to
M
profiles/onyx/hyper-v.nix
→
profiles/onyx/hyper-v.nix
@@ -1,11 +1,9 @@
-{ ... }: { - boot.initrd.availableKernelModules = [ "hv_vmbus" "hv_storvsc" ]; - - # since tailscale tries to use the TPM and we're sharing the same install - # between Hyper-V and bare metal, we have to turn encryption off for tailscaled to work: - systemd.services.tailscaled.environment = { - TS_ENCRYPT_STATE = "false"; - }; - +{ ... }: +{ + boot.initrd.availableKernelModules = [ + "hv_vmbus" + "hv_storvsc" + ]; + services.tailscale.extraDaemonFlags = [ "--encrypt-state=false" ]; virtualisation.hypervGuest.enable = true; }