summaryrefslogtreecommitdiff
path: root/home-manager/modules/hyprland.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/modules/hyprland.nix')
-rw-r--r--home-manager/modules/hyprland.nix11
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;
}