mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
ef176dcf7e
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
31 lines
639 B
Nix
31 lines
639 B
Nix
{ 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 = ''
|
|
mkdir -p "/run/spice-vdagentd/"
|
|
'';
|
|
serviceConfig = {
|
|
Type = "forking";
|
|
ExecStart = "${pkgs.spice-vdagent}/bin/spice-vdagentd";
|
|
};
|
|
};
|
|
};
|
|
}
|