mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-04-14 14:21:45 +04:00
21 lines
317 B
Nix
21 lines
317 B
Nix
{ config
|
|
, pkgs
|
|
, lib
|
|
, ...
|
|
}:
|
|
let
|
|
cfg = config.kp2pml30;
|
|
in {
|
|
options.kp2pml30.qemu = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf cfg.qemu {
|
|
environment.systemPackages = with pkgs; [
|
|
qemu
|
|
OVMF
|
|
];
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
users.users.${cfg.username}.extraGroups = [ "libvirtd" ];
|
|
};
|
|
}
|