diff options
| author | alex <[email protected]> | 2026-10-17 17:23:40 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-10-17 17:23:40 +0200 |
| commit | 2d06f3bdefd12a7e0b2dbe1f7c43decd3327d404 (patch) | |
| tree | 9452bb5608128d4d87909df343b60cca5a05ae03 /home-manager/modules | |
| parent | 5e91dc9e25815829114c9cf8162e87da6dffd396 (diff) | |
| download | nixos-2d06f3bdefd12a7e0b2dbe1f7c43decd3327d404.tar.xz nixos-2d06f3bdefd12a7e0b2dbe1f7c43decd3327d404.zip | |
added host specific hyprland configs
Diffstat (limited to 'home-manager/modules')
| -rw-r--r-- | home-manager/modules/hyprland.nix | 11 |
1 files changed, 10 insertions, 1 deletions
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; } |
