./nix --extra-experimental-features nix-command --extra-experimental-features flakes run --store ~/my-nix nixpkgs.nix nixpkgs.bashInteractive
I get:
path '/p/home/jraa/pks/nix/nixpkgs.nix' does not contain a 'flake.nix', searching up
**error:** getting status of '**/p/home/jraa/pks/nix/nixpkgs.nix**': **No such file or directory**
Do I need to get a file nixpkgs.nix from somewhere?
How can I fix this error?
That’s a deeper issue, could be anything from issues with the ssl backend to the root cert being in an unexpected location. I’d start checking what ssl backend ends up being used, and if that doesn’t seem fishy I’d get straceing.
Not unlikely someone with more experience running statically compiled nix will be able to tell what’s wrong at a glance, though.
Should be reasonably easy, it’s just a C++ codebase with mostly rather usual dependencies. Being easy to spin up on new platforms is a deliberate design goal. I wouldn’t be too surprised if a natively compiled nix either just worked out of the box or going through the process showed you what the issue is.
That said, again, I’m not the most experienced with nix on older platforms, certainly not following non-standard installation mechanisms, so it’s possible it’s actually something rather simple. Share if you figure it out, I’d love to know!
I’ve seen this error recently while trying to make nix work on fedora through a MITM proxy. In multi-user though so I’m not sure it’ll help but some of the stuff I tried which could lead you to the cause: