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; }