all repos — char/flake @ cc910a3f5fb2ab1be04662090357dcc0467521c5

nixos flake

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
commit

cc910a3f5fb2ab1be04662090357dcc0467521c5

parent

6419c77d877f86a946455ce9bd45667bcd512f8d

1 files changed, 7 insertions(+), 9 deletions(-)

jump to
M profiles/onyx/hyper-v.nixprofiles/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; }