43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
discordOverlay = _self: super: {
|
|
discord = super.discord.override {
|
|
withOpenASAR = true;
|
|
withVencord = true;
|
|
};
|
|
# Update some stuff while I wait for nixpkgs
|
|
vencord = super.vencord.overrideAttrs rec {
|
|
version = "1.8.1";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "Vendicated";
|
|
repo = "Vencord";
|
|
rev = "a525cd0113b37fbe08512a6e68ecb62b8d74cd72";
|
|
# rev = "v${version}";
|
|
hash = "sha256-97KgELDNhP2aZU66tC+F/QfHuWnICGRzXQFQMbim4Sk=";
|
|
};
|
|
npmDepsHash = "sha256-97KgELDNhP2aZU66tC+F/QfHuWnICGRzXQFQMbim4Sk=";
|
|
};
|
|
};
|
|
stock-discord = _self: super: {
|
|
discord = super.discord.override {
|
|
withOpenASAR = false;
|
|
withVencord = false;
|
|
};
|
|
};
|
|
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];
|
|
home-manager.users.toast = {
|
|
home.packages = with pkgs; [
|
|
discord
|
|
vesktop
|
|
];
|
|
};
|
|
}
|