Desktop/discord: get rid of official discord app
This commit is contained in:
parent
cc11a5a386
commit
fbe01084d2
1 changed files with 9 additions and 25 deletions
|
|
@ -1,42 +1,26 @@
|
||||||
{
|
{pkgs, ...}: let
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
discordOverlay = _self: super: {
|
discordOverlay = _self: super: {
|
||||||
discord = super.discord.override {
|
discord = super.discord.override {
|
||||||
withOpenASAR = true;
|
withOpenASAR = true;
|
||||||
withVencord = true;
|
withVencord = true;
|
||||||
};
|
};
|
||||||
# Update some stuff while I wait for nixpkgs
|
# Update some stuff while I wait for nixpkgs
|
||||||
vencord = super.vencord.overrideAttrs rec {
|
vencord = super.vencord.overrideAttrs rec {
|
||||||
version = "1.8.1";
|
version = "1.8.1";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "Vendicated";
|
owner = "Vendicated";
|
||||||
repo = "Vencord";
|
repo = "Vencord";
|
||||||
rev = "a525cd0113b37fbe08512a6e68ecb62b8d74cd72";
|
rev = "a525cd0113b37fbe08512a6e68ecb62b8d74cd72";
|
||||||
# rev = "v${version}";
|
# rev = "v${version}";
|
||||||
hash = "sha256-97KgELDNhP2aZU66tC+F/QfHuWnICGRzXQFQMbim4Sk=";
|
hash = "sha256-97KgELDNhP2aZU66tC+F/QfHuWnICGRzXQFQMbim4Sk=";
|
||||||
};
|
};
|
||||||
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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue