mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-26 08:33:12 +01:00
22 lines
355 B
Nix
22 lines
355 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.vm.guest-services;
|
|
in
|
|
{
|
|
options.vm.guest-services = {
|
|
enable = mkEnableOption "Enable Virtual Machine Guest Services";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.qemuGuest.enable = true;
|
|
services.spice-vdagentd.enable = true;
|
|
services.spice-webdavd.enable = true;
|
|
};
|
|
}
|