1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 17:31:04 +03:00
nixpkgs/nixos/modules/services/misc/spice-vdagentd.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
632 B
Nix
Raw Permalink Normal View History

{
config,
pkgs,
lib,
...
}:
let
cfg = config.services.spice-vdagentd;
in
{
options = {
services.spice-vdagentd = {
enable = lib.mkEnableOption "Spice guest vdagent daemon";
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.spice-vdagent ];
systemd.services.spice-vdagentd = {
description = "spice-vdagent daemon";
wantedBy = [ "graphical.target" ];
preStart = ''
2018-12-19 22:37:56 +01:00
mkdir -p "/run/spice-vdagentd/"
'';
serviceConfig = {
Type = "forking";
ExecStart = "${pkgs.spice-vdagent}/bin/spice-vdagentd";
};
};
};
}