diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-09-23 00:14:27 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-09-23 00:14:27 -0500 |
commit | 67c8c4917799496dcf2ad6a500441fbbaeb918c9 (patch) | |
tree | 660aa900488c8ca32a6cc6f0344a12ecb3353651 | |
parent | bd13ef5944a01f02006bcd4caafaaeba6a52d323 (diff) | |
download | nixlib-67c8c4917799496dcf2ad6a500441fbbaeb918c9.tar nixlib-67c8c4917799496dcf2ad6a500441fbbaeb918c9.tar.gz nixlib-67c8c4917799496dcf2ad6a500441fbbaeb918c9.tar.bz2 nixlib-67c8c4917799496dcf2ad6a500441fbbaeb918c9.tar.lz nixlib-67c8c4917799496dcf2ad6a500441fbbaeb918c9.tar.xz nixlib-67c8c4917799496dcf2ad6a500441fbbaeb918c9.tar.zst nixlib-67c8c4917799496dcf2ad6a500441fbbaeb918c9.zip |
nixos: set nixos in nixPath
This makes using the nixos channel work out of the box with the new Nix commands. For example: $ nix run nixos.firefox -c firefox Fixes #46536
-rw-r--r-- | nixos/modules/services/misc/nix-daemon.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index c0eb882c58f3..2d14e27ffc3d 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -347,6 +347,7 @@ in [ "$HOME/.nix-defexpr/channels" "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" + "nixos=/nix/var/nix/profiles/per-user/root/channels/nixos" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]; |