Add additional locations to look for the config.json file:
/etc/headscale and $HOME/.headscale
@@ -171,6 +171,8 @@ var enableRouteCmd = &cobra.Command{
func main() {
viper.SetConfigName("config")
+ viper.AddConfigPath("/etc/headscale/")
+ viper.AddConfigPath("$HOME/.headscale")
viper.AddConfigPath(".")
viper.AutomaticEnv()
err := viper.ReadInConfig()
