3
0
Fork 0
forked from mirrors/nixpkgs
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.

31 lines
639 B
Nix
Raw Normal View History

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