refactor(hosts): never load example.lua; make it a pure template

hyprland.lua now just uses its defaults when no hosts/<hostname>.lua
matches, instead of requiring hosts/example.lua. example.lua is kept only
as a documented template for contributors.
This commit is contained in:
Jeena 2026-08-24 09:57:32 +09:00
parent 70807f473a
commit 6365e1d122
2 changed files with 10 additions and 6 deletions

View file

@ -280,5 +280,6 @@ local hostname = (io.popen("hostname") or {}):read("*l") or ""
hostname = hostname:gsub("%..*$", "") -- strip domain suffix
local ok, err = pcall(require, "hosts." .. hostname)
if not ok then
require("hosts.example")
-- No host file matches this machine; use the defaults already set above.
-- See hosts/example.lua for a template on adding your own host.
end