system.apps: Add qemu
This commit is contained in:
parent
cd76e38131
commit
428ff5b4af
3 changed files with 25 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
||||||
apps = {
|
apps = {
|
||||||
flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
|
qemu.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./flatpak
|
./flatpak
|
||||||
|
./qemu
|
||||||
./steam
|
./steam
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
23
modules/system/apps/qemu/default.nix
Normal file
23
modules/system/apps/qemu/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue