nixos-config/modules/virtualisation/default.nix

15 lines
343 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
let
cfg = config.ptw.virtualisation;
in {
options.ptw.virtualisation = {
enable = lib.mkEnableOption "Enable and configure virtualisation";
};
config = lib.mkIf cfg.enable {
2021-11-04 18:56:27 +00:00
environment.systemPackages = with pkgs; [ virglrenderer unstable.qemu ];
services.spice-vdagentd.enable = true;
};
}