Skip to content

Commit

Permalink
Fix for SWTPM path issue (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyYakeley committed Aug 23, 2024
1 parent 8362569 commit d45c4a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
{
Expand All @@ -151,6 +158,7 @@ let
after = [ "libvirtd.service" ];
inherit script;
};
systemd.services.libvirtd.path = if cfg.swtpm.enable then [ "${packages.swtpm}/bin" ] else [ ];
}
);
};
Expand Down

0 comments on commit d45c4a1

Please sign in to comment.