From 8ae026474f3c943ecae7e998f597e9d74f9a09a6 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Wed, 8 Apr 2026 19:26:34 +0100 Subject: [PATCH] fix: provide declarative fallback for theme hyprland.conf --- assets/themes/nord/hyprland.conf | 9 +++++++++ modules/home/theme-files.nix | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 assets/themes/nord/hyprland.conf diff --git a/assets/themes/nord/hyprland.conf b/assets/themes/nord/hyprland.conf new file mode 100644 index 0000000..daeb243 --- /dev/null +++ b/assets/themes/nord/hyprland.conf @@ -0,0 +1,9 @@ +$activeBorderColor = rgb(81a1c1) + +general { + col.active_border = $activeBorderColor +} + +group { + col.border_active = $activeBorderColor +} diff --git a/modules/home/theme-files.nix b/modules/home/theme-files.nix index db32b07..4d512ed 100644 --- a/modules/home/theme-files.nix +++ b/modules/home/theme-files.nix @@ -6,6 +6,11 @@ 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; # Expose branding assets