[Nix#8953] Nix Flakes is not usable without access to github.com #116

Closed
opened 2024-03-16 06:44:59 +00:00 by lix-bot · 1 comment
Member

Upstream-Issue: NixOS/nix#8953

Describe the bug

I want to try/use Nix Flakes on an offline network. I have configured a local registry entry for offline use, but Nix still insists on getting the global registry from github.com, which prevents me from using it (the Flakes feature).

Example:

$ nix --extra-experimental-features "nix-command flakes" run mylocalflake#app
warning: error: unable to download 'https://channels.nixos.org/flake-registry.json': Couldn't resolve host name (6): retrying in 253 ms
[...]
error: unable to download 'https://channels.nixos.org/flake-registry.json': Couldn't resolve host name (6)

Non-Flakes Nix parts work fine on offline network.

Expected behavior

Nix Flakes can be configured with local registry and be usable without access to github.com.

nix-env --version output

nix (Nix) 2.13.5

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/8953 **Describe the bug** I want to try/use Nix Flakes on an offline network. I have configured a local registry entry for offline use, but Nix still insists on getting the global registry from github.com, which prevents me from using it (the Flakes feature). Example: ``` $ nix --extra-experimental-features "nix-command flakes" run mylocalflake#app warning: error: unable to download 'https://channels.nixos.org/flake-registry.json': Couldn't resolve host name (6): retrying in 253 ms [...] error: unable to download 'https://channels.nixos.org/flake-registry.json': Couldn't resolve host name (6) ``` Non-Flakes Nix parts work fine on offline network. **Expected behavior** Nix Flakes can be configured with local registry and be usable without access to github.com. **`nix-env --version` output** `nix (Nix) 2.13.5` **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
bug
imported
labels 2024-03-16 06:44:59 +00:00
jade added the
Area/flakes
label 2024-03-30 00:04:22 +00:00
Member
Resolved by I752b81c85ebeaab4e582ac01c239d69d65580f37.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#116
No description provided.