diff --git a/flake.nix b/flake.nix index 2f0dad1..3e6f19b 100644 --- a/flake.nix +++ b/flake.nix @@ -138,6 +138,8 @@ { inherit self inputs; + patches = ./overlays/patches; + channelsConfig = { allowUnfree = true; }; channels = { @@ -201,6 +203,8 @@ Infini-SERVER = { }; }; importables = rec { + inherit (self) patches; + profiles = digga.lib.rakeLeaves ./profiles // { users = digga.lib.rakeLeaves ./users; }; @@ -228,6 +232,8 @@ modules = [ "${inputs.impermanence}/home-manager.nix" ]; importables = rec { inherit inputs; + inherit (self) patches; + profiles = digga.lib.rakeLeaves ./users/profiles; suites = with profiles; self.lib.flattenSetList rec { diff --git a/overlays/patches/css-toggler.patch b/overlays/patches/css-toggler.patch new file mode 100644 index 0000000..d70f52f --- /dev/null +++ b/overlays/patches/css-toggler.patch @@ -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' diff --git a/users/profiles/discord.nix b/users/profiles/discord.nix index cfe7e28..603eb3e 100644 --- a/users/profiles/discord.nix +++ b/users/profiles/discord.nix @@ -1,4 +1,4 @@ -{ pkgs, inputs, ... }: { +{ pkgs, inputs, patches, ... }: { home.packages = with pkgs; [ (discord-plugged.override { plugins = with inputs; [ @@ -26,7 +26,13 @@ discord-copy-mentions discord-copy-raw-message 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-cutecord discord-discord-status