31 lines
742 B
Nix
31 lines
742 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
spice-vdagent
|
|
phodav
|
|
wl-clipboard
|
|
];
|
|
|
|
# List services that you want to enable:
|
|
services.spice-vdagentd.enable = true;
|
|
services.spice-webdavd.enable = true;
|
|
services.gvfs.enable = true;
|
|
services.qemuGuest.enable = true;
|
|
|
|
# Open ports in the firewall.
|
|
networking.firewall.allowedTCPPorts = [ 9843 ];
|
|
|
|
environment.etc."xdg/autostart/spice-vdagent-custom.desktop".text = ''
|
|
[Desktop Entry]
|
|
Name=Spice vdagent Custom
|
|
Comment=Startet das Clipboard für QEMU/Spice
|
|
Exec=${pkgs.spice-vdagent}/bin/spice-vdagent
|
|
Terminal=false
|
|
Type=Application
|
|
Categories=Network;
|
|
StartupNotify=false
|
|
X-GNOME-Autostart-enabled=true
|
|
'';
|
|
}
|