diff --git a/dots/nixcord.nix b/dots/nixcord.nix index 1af337f..eccb52f 100755 --- a/dots/nixcord.nix +++ b/dots/nixcord.nix @@ -18,6 +18,9 @@ #useSystemVencord = false; }; config = { + enabledThemes = [ + "dank-discord.css" + ]; plugins = { alwaysTrust = { enable = true; diff --git a/home/homePkgs.nix b/home/homePkgs.nix index ff9f6d0..fbdb741 100755 --- a/home/homePkgs.nix +++ b/home/homePkgs.nix @@ -15,17 +15,6 @@ let isDefault = true; }; - reversal-black = pkgs.reversal-icon-theme.overrideAttrs (old: { - installPhase = '' - runHook preInstall - mkdir -p $out/share/icons - # Hardcode the correct upstream invocation for black variant - ./install.sh -t black -d $out/share/icons - rm -f $out/share/icons/*/{AUTHORS,COPYING} - jdupes --quiet --link-soft --recurse $out/share - runHook postInstall - ''; - }); in { imports = [ @@ -225,8 +214,7 @@ in adw-gtk3 (pkgs.callPackage ../personalPKGS/oreo.nix { colors = [ "all" ]; }) - #(pkgs.reversal-icon-theme.override { colorVariants = ["-black"]; }) - reversal-black + (pkgs.callPackage ../personalPKGS/reversal-icon-theme.nix { colorVariants = [ "all" ]; }) pywalfox-native # ─── Experimental (inputs) ─────────────────────────────────────────────────── diff --git a/personalPKGS/reversal-icon-theme.nix b/personalPKGS/reversal-icon-theme.nix new file mode 100644 index 0000000..763b0e1 --- /dev/null +++ b/personalPKGS/reversal-icon-theme.nix @@ -0,0 +1,87 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + gtk3, + jdupes, + adwaita-icon-theme, + hicolor-icon-theme, + numix-icon-theme-circle, + colorVariants ? [ "black" ], +}: + +let + pname = "reversal-icon-theme"; +in +lib.checkListOfEnum "${pname}: color variants" [ + "black" + "blue" + "brown" + "cyan" + "green" + "grey" + "lightblue" + "orange" + "pink" + "purple" + "red" + "all" +] colorVariants + +stdenvNoCC.mkDerivation { + inherit pname; + version = "0-unstable-2026-01-26"; + + src = fetchFromGitHub { + owner = "yeyushengfan258"; + repo = "Reversal-icon-theme"; + rev = "26b97f00640cd9eaeb8f196eda3a8d298158a08f"; + hash = "sha256-ahnp25wTCTrOtJUbAIv7vvVC2am+idEokoRomRe5aKU="; + }; + + nativeBuildInputs = [ + gtk3 + jdupes + ]; + + propagatedBuildInputs = [ + adwaita-icon-theme + hicolor-icon-theme + numix-icon-theme-circle + ]; + + dontDropIconThemeCache = true; + + postPatch = '' + patchShebangs install.sh + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/icons + ./install.sh -d $out/share/icons -t ${toString colorVariants} + + # remove file that conflicts with other packages (e.g. gruvbox-dark-icons-gtk) + find $out/share/icons -name 'LICENSE' -delete + + jdupes --quiet --link-soft --recurse $out/share + + runHook postInstall + ''; + + dontFixup = true; + + passthru.updateScript = lib.maintainers.update-source-version { + src = "https://github.com/yeyushengfan258/${pname}"; + versionType = "commit"; + }; + + meta = with lib; { + description = "Colorful Design rectangular icon theme for Linux desktops"; + homepage = "https://github.com/yeyushengfan258/Reversal-icon-theme"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ romildo ]; + }; +} diff --git a/result b/result new file mode 120000 index 0000000..2232c0c --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/0pg8p2nmvi1sw3zqgl1k5p0vqraa0kii-nixos-system-mrfluffyPC-26.05.20260123.c5296fd \ No newline at end of file