27 lines
588 B
Nix
27 lines
588 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
discordOverlay = self: super: {
|
|
discord = super.discord.override {
|
|
withOpenASAR = true;
|
|
withVencord = true;
|
|
};
|
|
};
|
|
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 ];
|
|
users.users.toast.packages = with pkgs; [
|
|
discord
|
|
];
|
|
}
|