[NixOS] Add discord home-manager service

This commit is contained in:
Ivan Malison 2023-07-28 13:20:16 -06:00
parent 1e3522ea10
commit fca971a7b4

View File

@ -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 = { systemd.user.services.picom = {
Unit = { Unit = {
Description = "Picom X11 compositor"; Description = "Picom X11 compositor";