From 2d06f3bdefd12a7e0b2dbe1f7c43decd3327d404 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 17 Oct 2026 17:23:40 +0200 Subject: added host specific hyprland configs --- home-manager/modules/hyprland.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'home-manager/modules') diff --git a/home-manager/modules/hyprland.nix b/home-manager/modules/hyprland.nix index 2316bd5..c2b46b9 100644 --- a/home-manager/modules/hyprland.nix +++ b/home-manager/modules/hyprland.nix @@ -1,6 +1,15 @@ -{ ... }: { +{ osConfig, ... }: +let + host = osConfig.networking.hostName; + hostFile = ../hypr/hosts + "/${host}.lua"; +in { xdg.configFile."hypr" = { source = ../hypr; recursive = true; }; + + xdg.configFile."hypr/host.lua".source = + if builtins.pathExists hostFile + then hostFile + else ../hypr/hosts/default.lua; } -- cgit v1.2.3