Skip to content

Instantly share code, notes, and snippets.

@jeaye

jeaye/nix-borked Secret

Last active February 15, 2019 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeaye/7e9c4518a6827ebfa189683435eb609f to your computer and use it in GitHub Desktop.
Save jeaye/7e9c4518a6827ebfa189683435eb609f to your computer and use it in GitHub Desktop.
┌─(✓)[jeaye@oryx]─[~][11:16:06]
└──╼ nix-channel --add https://nixos.org/channels/nixpkgs-unstable
┌─(✓)[jeaye@oryx]─[~][11:16:09]
└──╼ nix-channel --list
nixpkgs https://nixos.org/channels/nixpkgs-unstable
┌─(✓)[jeaye@oryx]─[~][11:16:14]
└──╼ nix-channel --update
unpacking channels...
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: while setting up the build environment: getting attributes of path '': No such file or directory
error: program '/usr/bin/nix-env' failed with exit code 1
NIX_PATH
┌─(✗)[jeaye@oryx]─[~][11:16:22]
└──╼ sudo -i
[sudo] password for jeaye:
[root@oryx ~]# echo $NIX_PATH
nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs:/nix/var/nix/profiles/per-user/root/channels:nixpkgs=/root/.nix-defexpr/channels/nixpkgs
[root@oryx ~]# logout
┌─(✓)[jeaye@oryx]─[~][11:22:34]
└──╼ echo $NIX_PATH
nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs:/nix/var/nix/profiles/per-user/root/channels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment