From 29aac7e6e5c7bfb975aa4fbc9982e553e6b55a00 Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Thu, 19 Aug 2021 21:42:26 +0700 Subject: [PATCH] discord: add powercord with a bunch of stuff --- flake.lock | 294 ++++++++++++++++++++++++++++++++++ flake.nix | 22 ++- modules/user/packages-rin.nix | 22 ++- 3 files changed, 335 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 35cc37e..f8b1d09 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,53 @@ { "nodes": { + "better-status-indicators": { + "flake": false, + "locked": { + "lastModified": 1629354507, + "narHash": "sha256-awInjT1hnPgtdVHbZpx6tvUlR5VlzXD2RNcCyAOEWzo=", + "owner": "griefmodz", + "repo": "better-status-indicators", + "rev": "5f6d5a9a47d55e502e65f430a38bba0c2ffbc8ba", + "type": "github" + }, + "original": { + "owner": "griefmodz", + "repo": "better-status-indicators", + "type": "github" + } + }, + "channel-typing": { + "flake": false, + "locked": { + "lastModified": 1616011610, + "narHash": "sha256-HH8bFnFzkhlnOpMw9HnlOU7g78cnATR0Cd11gWxGmc4=", + "owner": "powercord-community", + "repo": "channel-typing", + "rev": "f229247b2dc134ba77e81c814285e040780718db", + "type": "github" + }, + "original": { + "owner": "powercord-community", + "repo": "channel-typing", + "type": "github" + } + }, + "discord-tweaks": { + "flake": false, + "locked": { + "lastModified": 1627600834, + "narHash": "sha256-xSzbP86w5OUy1ZO1iHgv1drbujtlPQAgJmLA3x7UOFc=", + "owner": "NurMarvin", + "repo": "discord-tweaks", + "rev": "bc28b090f9ed706d7f8271aeaa64bdcb886fd0ef", + "type": "github" + }, + "original": { + "owner": "NurMarvin", + "repo": "discord-tweaks", + "type": "github" + } + }, "discover": { "flake": false, "locked": { @@ -32,6 +80,22 @@ "type": "github" } }, + "fix-user-popouts": { + "flake": false, + "locked": { + "lastModified": 1624453628, + "narHash": "sha256-ujj9Sfmyu1kr/fLD8N34n7l/d8ln3501DmhEoMDiskA=", + "owner": "cyyynthia", + "repo": "fix-user-popouts", + "rev": "7acb547a13bd7dba8fe302ac1d71663a1234c585", + "type": "github" + }, + "original": { + "owner": "cyyynthia", + "repo": "fix-user-popouts", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -63,6 +127,21 @@ "type": "github" } }, + "flake-utils_2": { + "locked": { + "lastModified": 1623875721, + "narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "f7e004a55b120c02ecb6219596820fcd32ca8772", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -143,6 +222,76 @@ "type": "github" } }, + "no-double-back-pc": { + "flake": false, + "locked": { + "lastModified": 1625444104, + "narHash": "sha256-JSF4SDFfXymRqnMJTKtrWJotWzv4DwaXfc/AUOPNMKk=", + "owner": "the-cord-plug", + "repo": "no-double-back-pc", + "rev": "8b0af2e1b3cd49992059cd5772aefcf526e6d91a", + "type": "github" + }, + "original": { + "owner": "the-cord-plug", + "repo": "no-double-back-pc", + "type": "github" + } + }, + "powercord": { + "flake": false, + "locked": { + "lastModified": 1628942781, + "narHash": "sha256-51i05DbNIVf/a4bzLq5OFUgH61uas+z2UHyk+miGM1Y=", + "owner": "powercord-org", + "repo": "powercord", + "rev": "2a5b9fa46bc373cb7f87d40eea7e34af9636050e", + "type": "github" + }, + "original": { + "owner": "powercord-org", + "repo": "powercord", + "type": "github" + } + }, + "powercord-overlay": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "powercord": "powercord", + "utils": "utils" + }, + "locked": { + "lastModified": 1629479476, + "narHash": "sha256-Fwsh55fOetuDTtY+wvtz1zwlqkG9OnkY3tCCQqXMl0s=", + "owner": "LavaDesu", + "repo": "powercord-overlay", + "rev": "0722e7c79a89bdb276cb2739c22d875d3ec58920", + "type": "github" + }, + "original": { + "owner": "LavaDesu", + "repo": "powercord-overlay", + "type": "github" + } + }, + "powercord-popout-fix": { + "flake": false, + "locked": { + "lastModified": 1609018964, + "narHash": "sha256-wfuTvKeBEzaNlc/5CuqbKwbfWHoomd2KG78a7JfYQ7c=", + "owner": "Nexure", + "repo": "PowerCord-Popout-Fix", + "rev": "54c85f6f25bf8183846ab976160638cdafa86b51", + "type": "github" + }, + "original": { + "owner": "Nexure", + "repo": "PowerCord-Popout-Fix", + "type": "github" + } + }, "pure": { "flake": false, "locked": { @@ -159,15 +308,61 @@ "type": "github" } }, + "radialstatus": { + "flake": false, + "locked": { + "lastModified": 1627474668, + "narHash": "sha256-qCgbkrldvZlcDl6WA/ozVVkGKRfTK9HoJWqyayQXp9M=", + "owner": "DiscordStyles", + "repo": "RadialStatus", + "rev": "6ccdaf5b3ab8c57a7e8d1a776bdc1acd5db09558", + "type": "github" + }, + "original": { + "owner": "DiscordStyles", + "repo": "RadialStatus", + "type": "github" + } + }, + "rolecolor-everywhere": { + "flake": false, + "locked": { + "lastModified": 1626862001, + "narHash": "sha256-Iq+JDzeydV5gUVgI7eZq6/DLvzr6l5zvu1xESDTGct0=", + "owner": "powercord-community", + "repo": "rolecolor-everywhere", + "rev": "8cc064f5704045e654dac7af0110d9b9cdda75de", + "type": "github" + }, + "original": { + "owner": "powercord-community", + "repo": "rolecolor-everywhere", + "type": "github" + } + }, "root": { "inputs": { + "better-status-indicators": "better-status-indicators", + "channel-typing": "channel-typing", + "discord-tweaks": "discord-tweaks", "discover": "discover", "fast-syntax-highlighting": "fast-syntax-highlighting", + "fix-user-popouts": "fix-user-popouts", "home-manager": "home-manager", "neovim-nightly": "neovim-nightly", "nixpkgs": "nixpkgs", + "no-double-back-pc": "no-double-back-pc", + "powercord-overlay": "powercord-overlay", + "powercord-popout-fix": "powercord-popout-fix", "pure": "pure", + "radialstatus": "radialstatus", + "rolecolor-everywhere": "rolecolor-everywhere", "secrets": "secrets", + "theme-toggler": "theme-toggler", + "tokyonight": "tokyonight", + "twemoji-but-good": "twemoji-but-good", + "view-raw": "view-raw", + "who-reacted": "who-reacted", "zsh-abbr": "zsh-abbr", "zsh-history-substring-search": "zsh-history-substring-search" } @@ -187,6 +382,105 @@ "type": "github" } }, + "theme-toggler": { + "flake": false, + "locked": { + "lastModified": 1602965328, + "narHash": "sha256-8LpqpMVOTh34VmoomDR20C9tQ+XhFCOPWQ1wVt03S6Q=", + "owner": "redstonekasi", + "repo": "theme-toggler", + "rev": "14c00ee550d3a08c868ea9e6f71c260a0f0840c7", + "type": "github" + }, + "original": { + "owner": "redstonekasi", + "repo": "theme-toggler", + "type": "github" + } + }, + "tokyonight": { + "flake": false, + "locked": { + "lastModified": 1629377944, + "narHash": "sha256-DLMWZ/7ZemYtXh7fx+JV2MXU+f2uwl9hzbZYeK0YWl8=", + "owner": "Dyzean", + "repo": "Tokyo-Night", + "rev": "46f8b033c1eb1aefbc0eac99b541a7426b5f020c", + "type": "github" + }, + "original": { + "owner": "Dyzean", + "repo": "Tokyo-Night", + "type": "github" + } + }, + "twemoji-but-good": { + "flake": false, + "locked": { + "lastModified": 1587519895, + "narHash": "sha256-tuIahxrNA2bUXfQOf9vGrbE2owNyl4aPZhY78WjEQ3Q=", + "owner": "powercord-community", + "repo": "twemoji-but-good", + "rev": "41234befbdcfc0c277b6518d28d4d3c217dda236", + "type": "github" + }, + "original": { + "owner": "powercord-community", + "repo": "twemoji-but-good", + "type": "github" + } + }, + "utils": { + "inputs": { + "flake-utils": "flake-utils_2" + }, + "locked": { + "lastModified": 1628855985, + "narHash": "sha256-OqhVFoCCA6GfGuMhZXQ5CrmZUYsumCJTwI72FOMf82I=", + "owner": "gytis-ivaskevicius", + "repo": "flake-utils-plus", + "rev": "a79a0b86e59dc087df6704f9b13b1ed951ef5c5f", + "type": "github" + }, + "original": { + "owner": "gytis-ivaskevicius", + "ref": "staging", + "repo": "flake-utils-plus", + "type": "github" + } + }, + "view-raw": { + "flake": false, + "locked": { + "lastModified": 1616483167, + "narHash": "sha256-v3ynBix1EONNrk5g7V0fatsdDHx7VacPuhXF6ywRBHc=", + "owner": "Juby210", + "repo": "view-raw", + "rev": "a79e152c2270eef757941447a7c79df32d309350", + "type": "github" + }, + "original": { + "owner": "Juby210", + "repo": "view-raw", + "type": "github" + } + }, + "who-reacted": { + "flake": false, + "locked": { + "lastModified": 1614971312, + "narHash": "sha256-KUZP6dqqcVzr/3/iuL1URyuNxEqNfOHeE4CwC1wb+zU=", + "owner": "jaimeadf", + "repo": "who-reacted", + "rev": "fa5391bc1791734f7a27d011ba82c37f4e455df4", + "type": "github" + }, + "original": { + "owner": "jaimeadf", + "repo": "who-reacted", + "type": "github" + } + }, "zsh-abbr": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index f0d5d09..c042084 100644 --- a/flake.nix +++ b/flake.nix @@ -8,6 +8,9 @@ home-manager.inputs.nixpkgs.follows = "nixpkgs"; neovim-nightly.inputs.nixpkgs.follows = "nixpkgs"; + powercord-overlay.url = "github:LavaDesu/powercord-overlay"; + powercord-overlay.inputs.nixpkgs.follows = "nixpkgs"; + # zsh plugins zsh-abbr = { url = "github:olets/zsh-abbr"; flake = false; }; zsh-history-substring-search = { url = "github:zsh-users/zsh-history-substring-search"; flake = false; }; @@ -16,6 +19,22 @@ # overlays discover = { url = "github:trigg/Discover"; flake = false; }; + + # powercord plugins/themes + better-status-indicators = { url = "github:griefmodz/better-status-indicators"; flake = false; }; + channel-typing = { url = "github:powercord-community/channel-typing"; flake = false; }; + discord-tweaks = { url = "github:NurMarvin/discord-tweaks"; flake = false; }; + fix-user-popouts = { url = "github:cyyynthia/fix-user-popouts"; flake = false; }; + no-double-back-pc = { url = "github:the-cord-plug/no-double-back-pc"; flake = false; }; + powercord-popout-fix = { url = "github:Nexure/PowerCord-Popout-Fix"; flake = false; }; + rolecolor-everywhere = { url = "github:powercord-community/rolecolor-everywhere"; flake = false; }; + theme-toggler = { url = "github:redstonekasi/theme-toggler"; flake = false; }; + twemoji-but-good = { url = "github:powercord-community/twemoji-but-good"; flake = false; }; + view-raw = { url = "github:Juby210/view-raw"; flake = false; }; + who-reacted = { url = "github:jaimeadf/who-reacted"; flake = false; }; + + radialstatus = { url = "github:DiscordStyles/RadialStatus"; flake = false; }; + tokyonight = { url = "github:Dyzean/Tokyo-Night"; flake = false; }; }; outputs = { self, nixpkgs, home-manager, secrets, ... } @ inputs: @@ -62,7 +81,8 @@ (getPaths ./overlays) ) ) ++ [(self: super: customPackages super)] - ++ [inputs.neovim-nightly.overlay]; + ++ [inputs.neovim-nightly.overlay] + ++ [inputs.powercord-overlay.overlay]; mkSystem = if !(self ? rev) then throw "Dirty git tree detected." else diff --git a/modules/user/packages-rin.nix b/modules/user/packages-rin.nix index 8701f98..04b50d3 100644 --- a/modules/user/packages-rin.nix +++ b/modules/user/packages-rin.nix @@ -1,4 +1,4 @@ -{ config, enableGUI, pkgs, ... }: { +{ config, enableGUI, inputs, pkgs, ... }: { home.packages = with pkgs; [ ffmpeg gnupg @@ -16,7 +16,25 @@ nodePackages_latest.pnpm ] ++ lib.optionals enableGUI [ brave - discord-canary + (discord-plugged.override { + plugins = [ + inputs.better-status-indicators + inputs.channel-typing + inputs.discord-tweaks + inputs.fix-user-popouts + inputs.no-double-back-pc + inputs.powercord-popout-fix + inputs.rolecolor-everywhere + inputs.theme-toggler + inputs.twemoji-but-good + inputs.view-raw + inputs.who-reacted + ]; + themes = [ + inputs.radialstatus + inputs.tokyonight + ]; + }) discover-overlay element-desktop feh