[TASK] Refactor autostart
This commit is contained in:
parent
0518c9b34a
commit
b38ee2c8d6
@ -1,10 +1,24 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
spice-vdagent-desktop = pkgs.makeDesktopItem {
|
||||
name = "spice-vdagent-custom";
|
||||
desktopName = "Spice vdagent Custom";
|
||||
comment = "Startet das Clipboard für QEMU/Spice";
|
||||
exec = "${pkgs.spice-vdagent}/bin/spice-vdagent";
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
categories = [ "Network" ];
|
||||
extraConfig.StartupNotify = "false";
|
||||
extraConfig."X-GNOME-Autostart-enabled" = "true";
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
spice-vdagent
|
||||
phodav
|
||||
wl-clipboard
|
||||
spice-vdagent-desktop
|
||||
];
|
||||
|
||||
# List services that you want to enable:
|
||||
@ -18,15 +32,7 @@
|
||||
# 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
|
||||
'';
|
||||
# Symlink für Autostart
|
||||
environment.etc."xdg/autostart/spice-vdagent-custom.desktop".source =
|
||||
"${spice-vdagent-desktop}/share/applications/spice-vdagent-custom.desktop";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user