From dea6aa352c72b44f0938ff47801974bf5bf6ee32 Mon Sep 17 00:00:00 2001 From: chruffins <23645059+chruffins@users.noreply.github.com> Date: Tue, 24 Nov 2026 16:08:57 +0000 Subject: [PATCH] Read /etc/hypeman/config.yaml on macOS when no user config exists --- DEVELOPMENT.md | 1 + cmd/api/config/config.go | 1 + 2 files changed, 2 insertions(+) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 8c3a450f4..ca71bebbc 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -95,6 +95,7 @@ The config file is searched in these locations (first match wins): - Path specified by `CONFIG_PATH` environment variable - `/etc/hypeman/config.yaml` (Linux) - `~/.config/hypeman/config.yaml` (all platforms) +- `/etc/hypeman/config.yaml` (macOS) Common settings: diff --git a/cmd/api/config/config.go b/cmd/api/config/config.go index 95fa7a676..b1ba844da 100644 --- a/cmd/api/config/config.go +++ b/cmd/api/config/config.go @@ -325,6 +325,7 @@ func GetDefaultConfigPaths() []string { if runtime.GOOS == "darwin" { return []string{ filepath.Join(home, ".config", "hypeman", "config.yaml"), + "/etc/hypeman/config.yaml", } } // Linux: check /etc first, then user config