[TASK] Refactor autostart
This commit is contained in:
parent
0518c9b34a
commit
b38ee2c8d6
@ -1,10 +1,24 @@
|
|||||||
{ pkgs, ... }:
|
{ 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; [
|
environment.systemPackages = with pkgs; [
|
||||||
spice-vdagent
|
spice-vdagent
|
||||||
phodav
|
phodav
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
spice-vdagent-desktop
|
||||||
];
|
];
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
@ -18,15 +32,7 @@
|
|||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
environment.etc."xdg/autostart/spice-vdagent-custom.desktop".text = ''
|
# Symlink für Autostart
|
||||||
[Desktop Entry]
|
environment.etc."xdg/autostart/spice-vdagent-custom.desktop".source =
|
||||||
Name=Spice vdagent Custom
|
"${spice-vdagent-desktop}/share/applications/spice-vdagent-custom.desktop";
|
||||||
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
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user