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 ./media
./terminal ./terminal
./discord.nix
./games.nix ./games.nix
./gnome.nix ./gnome.nix
./misc.nix ./misc.nix

View file

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

View file

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