nixos/modules/desktop/dms/theme.nix

53 lines
1.5 KiB
Nix
Raw Normal View History

2025-12-12 04:02:55 +01:00
{
config,
lib,
...
2025-12-13 21:41:52 +01:00
}: let
inherit (config.fireproof) username;
2026-01-21 00:07:34 +01:00
c = config.fireproof.theme.colors;
2025-12-13 21:41:52 +01:00
in {
2025-12-12 04:02:55 +01:00
config = lib.mkIf config.fireproof.desktop.enable {
fireproof.home-manager = {
home.file.".config/DankMaterialShell/colors.json".text = builtins.toJSON {
name = "custom";
2026-01-21 00:07:34 +01:00
primary = "#${c.accent}";
primaryText = "#${c.whiteAlt}";
primaryContainer = "#${c.uiAlt}";
secondary = "#${c.magenta}";
surface = "#${c.ui}";
surfaceText = "#${c.fg}";
surfaceVariant = "#${c.bg}";
surfaceVariantText = "#${c.fgAlt}";
surfaceTint = "#${c.accent}";
background = "#${c.black}";
backgroundText = "#${c.whiteAlt}";
outline = "#${c.muted}";
surfaceContainer = "#${c.bg}";
surfaceContainerHigh = "#${c.bgAlt}";
surfaceContainerHighest = "#${c.uiAlt}";
error = "#${c.red}";
warning = "#${c.yellow}";
info = "#${c.blue}";
2025-12-12 04:02:55 +01:00
matugen_type = "scheme-expressive";
};
2026-01-19 17:44:37 +01:00
programs.dank-material-shell.settings = {
2025-12-12 04:02:55 +01:00
# Color theme
currentThemeName = "custom";
customThemeFile = "/home/${username}/.config/DankMaterialShell/colors.json";
widgetBackgroundColor = "sth";
widgetColorMode = "default";
# General
cornerRadius = 8;
# Font
fontFamily = "Inter Variable";
monoFontFamily = "Hack Nerd Font Mono";
fontWeight = 400;
fontScale = 1;
};
};
};
}