Install qemu and quickemu for vm's

This commit is contained in:
CronyAkatsuki 2025-02-01 13:55:58 +01:00
parent f39e7929e2
commit 0352a4caee
2 changed files with 21 additions and 0 deletions

19
modules/nixos/qemu.nix Normal file
View file

@ -0,0 +1,19 @@
{
config,
pkgs,
lib,
...
}: {
options = {
crony.qemu.enable = lib.mkEnableOption "Enable qemu and setup quickemu";
};
config = lib.mkIf config.crony.qemu.enable {
systemd.tmpfiles.rules = ["L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware"];
environment.systemPackages = with pkgs; [
qemu
quickemu
];
};
}