Skip to content

Commit ab08fd8

Browse files
committed
feat: get win11 vms working w/ swtpm and secureboot
1 parent ab67abf commit ab08fd8

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

nixos/t480s/configuration.nix

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,25 @@
281281
};
282282
};
283283

284-
virtualisation.libvirtd.enable = true;
285-
virtualisation.libvirtd.qemu.runAsRoot = true;
286-
virtualisation.libvirtd.qemu.package = pkgs.qemu_kvm;
284+
virtualisation = {
285+
libvirtd.enable = true;
286+
libvirtd.qemu = {
287+
package = pkgs.qemu_kvm;
288+
runAsRoot = true;
289+
swtpm.enable = true;
290+
ovmf = {
291+
enable = true;
292+
package = (pkgs.OVMFFull.override {
293+
secureBoot = true;
294+
tpmSupport = true;
295+
});
296+
};
297+
};
287298

288-
virtualisation.docker = {
289-
enable = true;
290-
autoPrune.enable = true;
299+
docker = {
300+
enable = true;
301+
autoPrune.enable = true;
302+
};
291303
};
292304

293305
security.pam = {

0 commit comments

Comments
 (0)