feat(themes): implement declarative theme file management

- Link active theme files from themes/ directly via Home Manager
- Use 'recursive = true' to allow dynamic templating inside linked directories
- Simplify nomarchy-theme-set to rely on declarative links
- Update template generator to point to the unified theme directory
This commit is contained in:
Bernardo Magri
2026-04-04 10:13:12 +01:00
parent cfd5e4bb65
commit b86c2bad43
2 changed files with 11 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
TEMPLATES_DIR="$OMARCHY_PATH/default/themed" TEMPLATES_DIR="$OMARCHY_PATH/default/themed"
USER_TEMPLATES_DIR="$HOME/.config/nomarchy/themed" USER_TEMPLATES_DIR="$HOME/.config/nomarchy/themed"
NEXT_THEME_DIR="$HOME/.config/nomarchy/current/next-theme" NEXT_THEME_DIR="$HOME/.config/nomarchy/current/theme"
COLORS_FILE="$NEXT_THEME_DIR/colors.toml" COLORS_FILE="$NEXT_THEME_DIR/colors.toml"
# Convert hex color to decimal RGB (e.g., "#1e1e2e" -> "30,30,46") # Convert hex color to decimal RGB (e.g., "#1e1e2e" -> "30,30,46")

View File

@@ -0,0 +1,10 @@
{ config, ... }:
{
xdg.configFile."nomarchy/current/theme" = {
source = ../../themes/${config.nomarchy.theme};
recursive = true;
};
xdg.configFile."nomarchy/current/theme.name".text = config.nomarchy.theme;
}