system.apps: Add qemu

This commit is contained in:
Florian RICHER 2025-01-11 15:25:39 +01:00
parent cd76e38131
commit 428ff5b4af
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
3 changed files with 25 additions and 0 deletions

View file

@ -34,6 +34,7 @@
apps = {
flatpak.enable = true;
steam.enable = true;
qemu.enable = true;
};
desktop = {

View file

@ -3,6 +3,7 @@
{
imports = [
./flatpak
./qemu
./steam
];
}

View file

@ -0,0 +1,23 @@
{ 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;
};
}