Closed paul-jewell closed 1 year ago
Here is the actual error message:
warning: future versions of Nix will require using
--fileto load a file
error: getting status of '/home/paul/github:NixOS/nixpkgs/22.05': No such file or directory
Oh, it's because you need to enable the repl-flake
experimental feature. See: https://github.com/Gabriella439/nixos-in-production/blob/16799bac90dcd74936bfdd1f6be25dda115464b7/manuscript/Setup.md#installing-nix
Thankyou! I had already enabled the other experimental features, but so far on my NixOS journey, I haven't made much use of the repl (one of the reasons I bought your book - to learn more). Have a great weekend!
You're welcome!
Good afternoon Gabriella, First of all thanks for the book - I have bought a copy, and I am thoroughly enjoying working through it. I have one question which I have so far been unable to resolve: at the top of page 34, there is a nix repl command:
$ nix repl github:NixOS/nixpkgs/22.05
When I issue this command, I am getting an error, saying it can't find $HOME/github: ... - it seems my shell is seeing the github path as a relative file location. Changing "github:" to "https://github.com/" gives a 404 error. How have you configured your shell to parse github: links? I do have a git config rule:url.https://github.com/.insteadof=github:
, but I suspect there needs to be some shell configuration as well? I would love to either know how you have configured the shell to make this work, or alternatively how I should execute the command without the link parsing. Thanks! Paul (I am running the code on a NixOS system with fish as the shell, if that has any bearing)