cyclone: Enable libvirtd

This commit is contained in:
Spotlight 2024-09-11 18:55:23 -05:00
parent 1ca4511ec1
commit 2331f56376
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

View file

@ -82,10 +82,29 @@
cpu.amd.updateMicrocode = true;
};
# As recommended in https://nixos.wiki/wiki/Libvirt#Setup
virtualisation.libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd
];
};
};
};
# Hey, world!
users.users.spotlight = {
isNormalUser = true;
extraGroups = [ "wheel" ];
extraGroups = [ "libvirtd" "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPQQO+c8ygVzRt55Z9qekqItSjYiw381cFPOqX+vGAGT MacBook Air 2020 macOS"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/gyX9b80oml6z3UGOxVMJk/NS8R5w9NEITJcKb0MnU MacBook Air 2020 NixOS"