Discord: add specialication to use stock discord package
This commit is contained in:
parent
5f983678dc
commit
35189a4e19
1 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue