about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-20 23:20:34 +0200
committerAlan Pearce2024-05-20 23:20:34 +0200
commit4ac6e917aafa02825bef4f213b2c41fd902a4baf (patch)
treeb8413ee22e62b91ab6d533084d640bd97d704638 /internal/config/config.go
parente70431d68dced8754e94228753359b2130fd075a (diff)
downloadsearchix-4ac6e917aafa02825bef4f213b2c41fd902a4baf.tar.lz
searchix-4ac6e917aafa02825bef4f213b2c41fd902a4baf.tar.zst
searchix-4ac6e917aafa02825bef4f213b2c41fd902a4baf.zip
refactor: use enum for Repository.Type
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 a0a05eb..0b3b9ba 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -94,7 +94,7 @@ func mustLocalTime(in string) (time LocalTime) {
 }
 
 var nixpkgs = Repository{
-	Type:  "github",
+	Type:  GitHub,
 	Owner: "NixOS",
 	Repo:  "nixpkgs",
 }
@@ -146,7 +146,7 @@ var defaultConfig = Config{
 				FetchTimeout:  Duration{5 * time.Minute},
 				ImportTimeout: Duration{15 * time.Minute},
 				Repo: Repository{
-					Type:  "github",
+					Type:  GitHub,
 					Owner: "LnL7",
 					Repo:  "nix-darwin",
 				},
@@ -165,7 +165,7 @@ var defaultConfig = Config{
 				FetchTimeout:  Duration{5 * time.Minute},
 				ImportTimeout: Duration{15 * time.Minute},
 				Repo: Repository{
-					Type:  "github",
+					Type:  GitHub,
 					Owner: "nix-community",
 					Repo:  "home-manager",
 				},