Discord: add specialication to use stock discord package

This commit is contained in:
Toast 2023-09-04 18:34:15 +02:00
parent 5f983678dc
commit 35189a4e19

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let let
discordOverlay = self: super: { discordOverlay = self: super: {
@ -7,8 +7,19 @@
withVencord = true; withVencord = true;
}; };
}; };
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 ];
users.users.toast.packages = with pkgs; [ users.users.toast.packages = with pkgs; [
discord discord