Skip to content

Commit

Permalink
feat: get win11 vms working w/ swtpm and secureboot
Browse files Browse the repository at this point in the history
  • Loading branch information
asimpson committed Feb 19, 2022
1 parent ab67abf commit ab08fd8
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions nixos/t480s/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,25 @@
};
};

virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu.runAsRoot = true;
virtualisation.libvirtd.qemu.package = pkgs.qemu_kvm;
virtualisation = {
libvirtd.enable = true;
libvirtd.qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
package = (pkgs.OVMFFull.override {
secureBoot = true;
tpmSupport = true;
});
};
};

virtualisation.docker = {
enable = true;
autoPrune.enable = true;
docker = {
enable = true;
autoPrune.enable = true;
};
};

security.pam = {
Expand Down

0 comments on commit ab08fd8

Please sign in to comment.