From 65e569cc37a52dd6476469df1e53e669acfaf508 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 12 Apr 2015 23:50:20 +0200 Subject: nixos: Add all of root's channels to NIX_PATH. This is very useful if you want to distribute channels (and thus expressions as well) in a similar fashion to Debians APT sources (or PPAs or whatnot). So, for example if you have a channel with some additional functions or packages, you simply add that channel with: sudo nix-channel --add https://example.com/my-nifty-channel foo And you can access that channel using , for example in your configuration.nix: { imports = [ ]; environment.systemPackages = with import {}; [ bar blah ]; services.udev.extraRules = import { kernel = "eth*"; attr.address = "00:1D:60:B9:6D:4F"; name = "my_fast_network_card"; }; } Within nixpkgs, we shouldn't have used anywhere anymore, so we shouldn't get into conflicts. Signed-off-by: aszlig --- nixos/modules/programs/environment.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/programs/environment.nix') diff --git a/nixos/modules/programs/environment.nix b/nixos/modules/programs/environment.nix index e0379a2c02a..1a211b8c84f 100644 --- a/nixos/modules/programs/environment.nix +++ b/nixos/modules/programs/environment.nix @@ -25,7 +25,8 @@ in environment.sessionVariables = { NIX_PATH = - [ "/nix/var/nix/profiles/per-user/root/channels/nixos" + [ "/nix/var/nix/profiles/per-user/root/channels" + "/nix/var/nix/profiles/per-user/root/channels/nixos" "nixpkgs=/etc/nixos/nixpkgs" "nixos-config=/etc/nixos/configuration.nix" ]; -- cgit 1.4.1