Stream: nix

Topic: nix flake --init with template in private repo?


view this post on Zulip Andreas (Apr 20 2024 at 13:49):

Quick question: is it possible to have a repo of private nix flake templates to initialize from the cli? Or does the template repo have to be public?

view this post on Zulip Andreas (Apr 20 2024 at 17:29):

Since you are online @Shivaraj B H and everyone else is just chillin' on Saturday, I'll just ping you :grinning_face_with_smiling_eyes:

view this post on Zulip Shivaraj B H (Apr 20 2024 at 17:31):

This might be related: https://gist.github.com/arianvp/8f80c23a3410d27746fb97a6563d9677

Saw this on twitter like a week ago and srid posted on an internal channel as well.

view this post on Zulip Andreas (Apr 20 2024 at 17:33):

interesting, I'll try and see if I can access my first little flake template from a private repo

view this post on Zulip Andreas (Apr 20 2024 at 17:47):

Yeah, seems to work. I wonder if this also works for Gitea or Gitlab?

view this post on Zulip Andreas (Apr 20 2024 at 17:48):

I think I might just create a little shell alias with that as a script to set this up whenever I need to.


Last updated: Nov 15 2024 at 12:33 UTC