Skip to content

Add minimal devShell template - #104

Merged
tomberek merged 1 commit into
NixOS:masterfrom
eprovst:master
Sep 13, 2026
Merged

Add minimal devShell template#104
tomberek merged 1 commit into
NixOS:masterfrom
eprovst:master

Conversation

@eprovst

@eprovst eprovst commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This adds a minimal multi-architecture devShell template based on the approach that is now used for the trivial template (see #103).

I opted to list the inputs explicitly, unlike to the trivial template. In this form, when a name does not match an input, Nix tries to find it in the flake registry (thus resolving to the same commit as nix shell nixpkgs#hello). On flake based NixOS installs, the registry entry for nixpkgs is even set to the one used by the system, thus someone who wants to track the system nixpkgs can simply remove the corresponding input line from the template, which mimics the behaviour of nix-shell. edit: unfortunately, in a flake.nix file only the global registry is used, not the system nor user one (where that entry pointing to the system version lives).

@eprovst eprovst changed the title Added devshell template Add minimal devShell template Aug 19, 2026
@tomberek
tomberek merged commit 0c7f523 into NixOS:master Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants