fix: provide declarative fallback for theme hyprland.conf

This commit is contained in:
Bernardo Magri
2026-04-08 19:26:34 +01:00
parent 1184cad61a
commit 8ae026474f
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
$activeBorderColor = rgb(81a1c1)
general {
col.active_border = $activeBorderColor
}
group {
col.border_active = $activeBorderColor
}

View File

@@ -6,6 +6,11 @@
recursive = true; recursive = true;
}; };
# Ensure theme-specific hyprland config exists, fallback to nord if not
xdg.configFile."nomarchy/current/theme/hyprland.conf" = lib.mkIf (! builtins.pathExists (../../assets/themes + "/${config.nomarchy.theme}/hyprland.conf")) {
source = ../../assets/themes/nord/hyprland.conf;
};
xdg.configFile."nomarchy/current/theme.name".text = config.nomarchy.theme; xdg.configFile."nomarchy/current/theme.name".text = config.nomarchy.theme;
# Expose branding assets # Expose branding assets