Skip to content

Avoiding nix flake update in stand-alone flake #2315

Closed Answered by MattSturgeon
refaelsh asked this question in Q&A
Discussion options

You must be logged in to vote

But then I will not be able to tell a friend to just do nix run github:refaelsh/dotfile?ref=nixvim to get the same Neovim as I do.

Assume you combine things into your top-level flake's outputs:

If you have many packages, and don't want your neovim to be your default package, then you can tell a friend to do:

nix run github:refaelsh/dotfile#package-name

# e.g:
nix run github:refaelsh/dotfile#nvim

# or locally:
nix run .#nvim

If neovim is what you would consider your "default" build, then you can alias your packages.*.nvim output as packages.*. default and the following will also work:

nix run github:refaelsh/dotfile

# which is shorthand for:
nix run github:refaelsh/dotfile#default

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@MattSturgeon
Comment options

@refaelsh
Comment options

@refaelsh
Comment options

@MattSturgeon
Comment options

Answer selected by refaelsh
@MattSturgeon
Comment options

@refaelsh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants