mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-01-24 05:08:36 +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;
|
||
|
};
|
||
|
}
|