nixos/modules/system/apps/qemu/default.nix

24 lines
500 B
Nix
Raw Normal View History

2025-01-11 15:25:39 +01:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.apps.qemu;
in
{
options.modules.system.apps.qemu = {
enable = mkEnableOption ''
Enable qemu with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.virt-manager.enable = true;
users.groups.libvirtd.members = ["florian"];
users.users.florian.extraGroups = [ "libvirtd" ];
virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
};
}