Skip to content

Commit

Permalink
nix-channel: fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Apr 17, 2024
1 parent 1f858b3 commit 2986a63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .docker/nix.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ RUN mkdir -p ~/.config/elvish \
&& echo -e "set paths = [ /carapace-bin/cmd/carapace \$@paths ]\neval (carapace _carapace|slurp)" > ~/.config/elvish/rc.elv
RUN export PATH="/carapace-bin/cmd/carapace:$PATH"

RUN mkdir -p ~/.config/nix \
&& echo -e "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf


CMD ["elvish"]
2 changes: 1 addition & 1 deletion pkg/actions/tools/nix/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func ActionLocalChannels() carapace.Action {
// nixos-21.11-small (unmaintained)
// nixos-22.05 (stable)
func ActionRemoteChannels() carapace.Action {
return carapace.ActionExecCommand("curl", "https://monitoring.nixos.org/prometheus/api/v1/query?query=channel_revision")(func(output []byte) carapace.Action {
return carapace.ActionExecCommand("curl", "https://prometheus.nixos.org/api/v1/query?query=channel_revision")(func(output []byte) carapace.Action {
var response struct {
Data struct {
Result []struct {
Expand Down

0 comments on commit 2986a63

Please sign in to comment.