summaryrefslogtreecommitdiff
path: root/home-manager/modules/hyprland.nix
blob: c2b46b9f73aa3425e7cd55bed14fcefb8ce24022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}