{ pkgs, ... }: { systemd.user.services = { discord = { Unit = { Description = "Text and voice chat for gamers."; PartOf = [ "graphical-session.target" ]; After = [ "graphical-session.target" "wayland-session@hyprland.desktop.target" ]; Requisite = [ "graphical-session.target" "wayland-session@hyprland.desktop.target" ]; WantedBy = [ "graphical-session.target" "wayland-session@hyprland.desktop.target" ]; }; Service = { Type = "simple"; ExecStart = "${pkgs.discord}/bin/discord"; Slice = "app-graphical.slice"; }; Install = { WantedBy = [ "graphical-session.target" "wayland-session@hyprland.desktop.target" ]; }; }; discord-overlay = { Unit = { Description = "Yet another discord overlay for linux"; PartOf = [ "graphical-session.target" ]; After = [ "graphical-session.target" "wayland-session@hyprland.desktop.target" ]; Requisite = [ "graphical-session.target" "wayland-session@hyprland.desktop.target" ]; WantedBy = [ "graphical-session.target" "wayland-session@hyprland.desktop.target" ]; }; Service = { Type = "simple"; ExecStart = "${pkgs.discover-overlay}/bin/discover-overlay"; Slice = "app-graphical.slice"; }; Install = { WantedBy = [ "graphical-session.target" "wayland-session@hyprland.desktop.target" ]; }; }; }; }