From fe79b4509dd580542fa28186673826df603677bb Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 May 2024 21:29:56 +0200 Subject: feat: enable using channel URLs if unable to resolve via NIX_PATH --- internal/config/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index 55f5efa..9880b3a 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -48,6 +48,7 @@ var defaultConfig = Config{ Enable: true, Type: importer.Channel, Channel: "nixpkgs", + URL: "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz", ImportPath: "nixos/release.nix", Attribute: "options", OutputPath: "share/doc/nixos/options.json", @@ -64,7 +65,8 @@ var defaultConfig = Config{ Key: "darwin", Enable: false, Type: importer.Channel, - Channel: "nix-darwin", + Channel: "darwin", + URL: "https://github.com/LnL7/nix-darwin/archive/master.tar.gz", ImportPath: "release.nix", Attribute: "options", OutputPath: "share/doc/darwin/options.json", @@ -81,6 +83,7 @@ var defaultConfig = Config{ Key: "home-manager", Enable: false, Channel: "home-manager", + URL: "https://github.com/nix-community/home-manager/archive/master.tar.gz", Type: importer.Channel, ImportPath: "default.nix", Attribute: "docs.json", -- cgit 1.4.1