profiles/discord: fix css-toggler plugin

This commit is contained in:
Infinidoge 2021-11-12 20:28:08 -05:00
parent 76ba83e1df
commit d12b576488
3 changed files with 27 additions and 2 deletions

View file

@ -138,6 +138,8 @@
{ {
inherit self inputs; inherit self inputs;
patches = ./overlays/patches;
channelsConfig = { allowUnfree = true; }; channelsConfig = { allowUnfree = true; };
channels = { channels = {
@ -201,6 +203,8 @@
Infini-SERVER = { }; Infini-SERVER = { };
}; };
importables = rec { importables = rec {
inherit (self) patches;
profiles = digga.lib.rakeLeaves ./profiles // { profiles = digga.lib.rakeLeaves ./profiles // {
users = digga.lib.rakeLeaves ./users; users = digga.lib.rakeLeaves ./users;
}; };
@ -228,6 +232,8 @@
modules = [ "${inputs.impermanence}/home-manager.nix" ]; modules = [ "${inputs.impermanence}/home-manager.nix" ];
importables = rec { importables = rec {
inherit inputs; inherit inputs;
inherit (self) patches;
profiles = digga.lib.rakeLeaves ./users/profiles; profiles = digga.lib.rakeLeaves ./users/profiles;
suites = with profiles; self.lib.flattenSetList suites = with profiles; self.lib.flattenSetList
rec { rec {

View file

@ -0,0 +1,13 @@
diff --git a/constants.js b/constants.js
index 6bc4317..2ae4b55 100644
--- a/constants.js
+++ b/constants.js
@@ -11,7 +11,7 @@ module.exports = Object.freeze({
ERROR: 0xED4245,
SUCCESS: 0x3BA55C
},
- CACHE_FOLDER: join(__dirname, '.cache'),
+ CACHE_FOLDER: join("/home/infinidoge/.config", "powercord", 'css-toggler-cache'),
MAX_SNIPPET_TITLE_LENGTH: 32,
MAX_SNIPPET_DESCRIPTION_LENGTH: 120,
DEFAULT_SNIPPET_TITLE: 'Untitled Snippet'

View file

@ -1,4 +1,4 @@
{ pkgs, inputs, ... }: { { pkgs, inputs, patches, ... }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
(discord-plugged.override { (discord-plugged.override {
plugins = with inputs; [ plugins = with inputs; [
@ -26,7 +26,13 @@
discord-copy-mentions discord-copy-mentions
discord-copy-raw-message discord-copy-raw-message
discord-copy-role-color discord-copy-role-color
discord-css-toggler (pkgs.applyPatches {
src = inputs.discord-css-toggler;
patches = [
"${patches}/css-toggler.patch"
];
name = "discord-css-toggler";
})
discord-custom-timestamps discord-custom-timestamps
discord-cutecord discord-cutecord
discord-discord-status discord-discord-status