dotfiles/common/systemModules/vm.nix

24 lines
407 B
Nix
Raw Normal View History

2024-10-02 23:37:49 -04:00
{ NAME }: { pkgs, ... }: {
2024-10-02 16:36:52 -04:00
virtualisation = {
libvirtd = {
enable = true;
2024-10-02 23:37:49 -04:00
qemu = {
ovmf = {
enable = true;
packages = with pkgs; [
OVMF.fd
pkgsCross.aarch64-multiplatform.OVMF.fd
];
};
};
2024-10-02 16:36:52 -04:00
};
};
users = {
users = {
"${NAME}" = {
extraGroups = [ "kvm" "libvirtd" ];
};
};
};
}