mlvzk / discocss

A tiny Discord css-injector for Linux and MacOS.
Mozilla Public License 2.0
210 stars 16 forks source link

not working NixOS 23.05 #29

Open aspauldingcode opened 8 months ago

aspauldingcode commented 8 months ago

Hi,

I enable a settings module using home-manager on NixOS with the following config:

{ config, ... }:

# Discocss discord css injector theme
{
  programs.discocss = {
    enable = true;
    discordAlias = true; # Whether to alias discocss to discord.

    css = let inherit (config.colorscheme) colors; in /* css */ ''
    .theme-light {
      --background-primary: #${colors.base00}88;
      --background-primary-alt: #${colors.base01}88;
      --background-secondary: #${colors.base02}88;
      --background-secondary-alt: #${colors.base03}88;
      --background-tertiary: #${colors.base04}88;
    }
    '';

    /*
    NOTES: If you want your window to be transparent, you have to change the --background- css 
    variables to have an alpha value. You can add alpha to a hex color by appending 2 extra hex 
    digits to it. Example from my theme (44 is the hex alpha value):
    */

  };
}

And I've gotten the following error:

Screenshot 2024-02-11 at 01 29 07 AM

Which occurs when I start discord after a Home-Manager rebuild.

Weathercold commented 6 months ago

Can reproduce