Install qemu and quickemu for vm's
This commit is contained in:
parent
f39e7929e2
commit
0352a4caee
2 changed files with 21 additions and 0 deletions
19
modules/nixos/qemu.nix
Normal file
19
modules/nixos/qemu.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue