about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 5801847..e381e61 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -30,7 +30,7 @@ type Config struct {
 	DataPath string `toml:"data-path"`
 	CSP      CSP    `toml:"content-security-policy"`
 	Headers  map[string]string
-	Sources  map[string]importer.Source
+	Sources  map[string]*importer.Source
 }
 
 var defaultConfig = Config{
@@ -41,7 +41,7 @@ var defaultConfig = Config{
 	Headers: map[string]string{
 		"x-content-type-options": "nosniff",
 	},
-	Sources: map[string]importer.Source{
+	Sources: map[string]*importer.Source{
 		"nixos": {
 			Name:          "NixOS",
 			Enable:        true,
@@ -114,7 +114,7 @@ func GetConfig(filename string) (*Config, error) {
 		}
 	}
 
-	maps.DeleteFunc(config.Sources, func(_ string, v importer.Source) bool {
+	maps.DeleteFunc(config.Sources, func(_ string, v *importer.Source) bool {
 		return !v.Enable
 	})