Stream: nix

Topic: Flake template vars


view this post on Zulip Srid (Mar 04 2024 at 17:05):

https://github.com/NixOS/nix/issues/4017

Has anyone written a dumb solution to extend nix flake .. with basic template vars support?

view this post on Zulip Srid (Mar 04 2024 at 17:08):

nix flake init -t github:juspay/nix-dev-home \
  --override-input username "https://nixid.page/str/srid"

Where nixid.page/<type>/<val> will dynamically serve a flake outputting that expression. :open_mouth:

As a bandaid for https://github.com/NixOS/nix/issues/5663

view this post on Zulip Srid (Mar 04 2024 at 17:09):

Grr, --override-input is unsupported for this subcommand.

view this post on Zulip Srid (Mar 04 2024 at 17:11):

There's --override-flake, though.


Last updated: Nov 15 2024 at 12:33 UTC