nixos-cesium/config/vm-guest.nix
2026-02-07 11:56:38 +01:00

33 lines
810 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 22 ];
# Enable the OpenSSH daemon.
services.openssh.enable = true;
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
'';
}