From d45c4a12fe7518267ec8bb10c19ff6dea6b2fea6 Mon Sep 17 00:00:00 2001 From: Ashley Yakeley Date: Fri, 23 Aug 2024 01:56:18 -0700 Subject: [PATCH] Fix for SWTPM path issue (#52) --- modules.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules.nix b/modules.nix index 0158dd5..46edddf 100644 --- a/modules.nix +++ b/modules.nix @@ -141,6 +141,13 @@ let { enable = true; package = lib.mkDefault packages.libvirt; + qemu.swtpm = + if cfg.swtpm.enable then + { + enable = true; + package = packages.swtpm; + } + else { }; }; systemd.services.nixvirt = { @@ -151,6 +158,7 @@ let after = [ "libvirtd.service" ]; inherit script; }; + systemd.services.libvirtd.path = if cfg.swtpm.enable then [ "${packages.swtpm}/bin" ] else [ ]; } ); };