Code Monkey home page Code Monkey logo

Comments (2)

nakato avatar nakato commented on July 17, 2024

Which is presumably because the NIX_PATH environment variable is not set.

I don't think these paths would be checked if the environment variable was not set.
It looks like they're set by PAM from /etc/pam/environment

Do you know how that could be fixed?

It looks like the channel is defined

[root@bpir3:~]# nix-channel --list
nixos https://nixos.org/channels/nixos-unstable

After I run the following it populates

[root@bpir3:~]# nix-info 
system: "aarch64-linux", multi-user?: no, version: nix-env (Nix) 2.13.3, nixpkgs: not found

[root@bpir3:~]# nix-channel --update
unpacking channels...

[root@bpir3:~]# nix-info 
system: "aarch64-linux", multi-user?: yes, version: nix-env (Nix) 2.13.3, channels(root): "nixos", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Looking into it, it looks like it's normally pre-populated on "installation media" via <nixpkgs>/nixos/modules/installer/cd-dvd/channel.nix.
It's not very obvious, but it looks like that is intended to be included in "golden images" as well, and it takes care of doing a one-time command at boot to set it up to a copy of nixpkgs in the nix-store included in the filesystem.

This was an interesting one, it looks like I never ran into this one because I manage the device entirely via nix-command (nix shell instead of nix-shell) and flakes, and my in-service router still doesn't have those channel links.

from nixos-bpir3-example.

ghostbuster91 avatar ghostbuster91 commented on July 17, 2024

Thanks for the explanation, updating channel information fixed the issue 👍

from nixos-bpir3-example.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.