{ config, 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 = "522fdcd"; src = pkgs.fetchFromGitHub { owner = "Vendicated"; repo = "Vencord"; rev = "522fdcd"; #rev = "v${version}"; hash = "sha256-9G7FNL4pHaaLachzJmeAol0WpNUj533K2FNa7DH0eBM="; }; }; }; 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 vesktop ]; }