treewide: move discord styling out of module

This commit is contained in:
Anthony Rodriguez 2025-01-17 10:47:43 +01:00
parent 89f8637d03
commit b3a03e5e9b
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 10 additions and 9 deletions

View file

@ -6,6 +6,7 @@
./media
./terminal
./discord.nix
./games.nix
./gnome.nix
./misc.nix

View file

@ -1,13 +1,15 @@
{
lib,
config,
pkgs,
osConfig,
...
}: let
cfg = config.local.style;
styleCfg = osConfig.local.style;
in {
config.home-manager.sharedModules = lib.mkIf cfg.enable [
{
xdg.configFile."vesktop/themes/midnight-base16.css".text = with cfg.scheme.palette; ''
config = lib.mkIf osConfig.local.profiles.desktop.enable {
home.packages = [pkgs.vesktop];
xdg.configFile."vesktop/themes/midnight-base16.css".text = with styleCfg.scheme.palette;
lib.mkIf styleCfg.enable ''
/**
* @name Midnight-base16
* @description A dark, rounded discord theme. Updated to use base16 colors.
@ -30,7 +32,7 @@ in {
--font: 'gg sans';
/* top left corner text */
--corner-text: '${cfg.scheme.name}';
--corner-text: '${styleCfg.scheme.name}';
/* color of status indicators and window controls */
--online-indicator: ${base0B}; /* change to #23a55a for default green */
@ -108,6 +110,5 @@ in {
fill: var(--text-0) !important;
}
'';
}
];
};
}

View file

@ -19,7 +19,6 @@
playerctl
proton-pass
simple-scan
vesktop
wl-clipboard
];