Desktop/discord: get rid of official discord app

This commit is contained in:
Toast 2024-05-18 13:28:50 +02:00
parent cc11a5a386
commit fbe01084d2

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: let
pkgs,
lib,
...
}: let
discordOverlay = _self: super: { discordOverlay = _self: super: {
discord = super.discord.override { discord = super.discord.override {
withOpenASAR = true; withOpenASAR = true;
@ -21,22 +17,10 @@
npmDepsHash = "sha256-97KgELDNhP2aZU66tC+F/QfHuWnICGRzXQFQMbim4Sk="; npmDepsHash = "sha256-97KgELDNhP2aZU66tC+F/QfHuWnICGRzXQFQMbim4Sk=";
}; };
}; };
stock-discord = _self: super: {
discord = super.discord.override {
withOpenASAR = false;
withVencord = false;
};
};
in { in {
# Sometimes discord breaks after updates, and launching it stock once fixes it
specialisation.stockDiscord.configuration = {
nixpkgs.overlays = lib.mkAfter [stock-discord];
};
nixpkgs.overlays = [discordOverlay]; nixpkgs.overlays = [discordOverlay];
home-manager.users.toast = { home-manager.users.toast = {
home.packages = with pkgs; [ home.packages = with pkgs; [
discord
vesktop vesktop
]; ];
}; };