Nix-channel --update doesn't download changes

I’m trying to figure out what nix-channel --update actually does. My understanding was that if I add a URL to a tarball with nix-channel --add then nix-channel --update

  • would download that tarball
  • extract the tarball if it has changed
  • create a new channel generation if any of the tarballs have changed

My problem is that I have made changes to the tarball on the server but I don’t get those changes in ~/.nix-defexpr/channels/ after running nix-channel --update. I also noticed that the only output of nix-channel --update is unpacking channels..., nothing about downloading channels.

Did I misunderstand how nix-channel --update works?

You may be running into a cache TTL issue for the tarball.

1 Like