ags: add another accent for chest

This commit is contained in:
Sweetbread authored and Sweetbread committed 2026-08-15 21:35:55 +03:00
1 parent 74d7747ae1
commit 136aff1baa
2 files changed
+10 -6

No files matched your search

+8 -4
View File
@@ -1,17 +1,21 @@
{ stdenv, lib, config, colors, ... }:
{ stdenv, lib, config, colors, username, ... }:
stdenv.mkDerivation {
name = "AGS theme";
src = ./ags;
dontUnpack = true;
patchPhase = ''
patchPhase = let
accent = if username == "chest"
then colors.base0E
else colors.base0B;
in ''
echo \$bg: \#${colors.base00}\; > colors.scss
echo \$surface0: \#${colors.base02}\; >> colors.scss
echo \$fg: \#${colors.base05}\; >> colors.scss
echo \$accent: \#${colors.base0B}\; >> colors.scss
echo \$accent: \#${accent}\; >> colors.scss
echo \#${colors.base0B} > accent.css
echo \#${accent} > accent.css
'';
installPhase = ''