From fca971a7b4ce113809f48c4c81285ff4daabb0ed Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 28 Jul 2023 13:20:16 -0600 Subject: [PATCH] [NixOS] Add discord home-manager service --- nixos/home-manager.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixos/home-manager.nix b/nixos/home-manager.nix index 0abadae8..ea16312e 100644 --- a/nixos/home-manager.nix +++ b/nixos/home-manager.nix @@ -135,6 +135,22 @@ inputs: { pkgs, config, ... }: { }; }; + systemd.user.services.discord = { + Unit = { + Description = "Discord"; + After = [ "graphical-session-pre.target" "tray.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + + Install = { WantedBy = [ "graphical-session.target" ]; }; + + Service = { + ExecStart = "${pkgs.discord}/opt/Discord/Discord --start-minimized"; + Restart = "always"; + RestartSec = 3; + }; + }; + systemd.user.services.picom = { Unit = { Description = "Picom X11 compositor";