I’m trying to use nix on my pinephone, which is currently running postmarketOS, which is based on alpine linux. This is aarch64 architecture. My goal for now is to have access to all the goodies in nixpkgs; eventually I hope to migrate the phone to mobile NixOS.
I installed nix from the alpine repo. I added my user to the “nix” group. The output of nix-channel --list
is good. When I do nix-channel --update
I get an error about /bin/bash
not found. This is strange because I have it installed and it is found on the path. If I do sudo nix-channel --update
it succeeds, but nix-env -iA nixpkgs.emacs
still fails (“attribute nixpkgs not found”), and so does sudo nix-env -iA nixpkgs.emacs
. Any ideas to help me debug this?