all repos — nixfiles @ b8c5076a55617afa69abaee532948666b0c849b8

System and user configuration, managed by nix and home-manager

Nix: Use nixos-unstable for nodejs on Linux My Laptop uses the stable channel for the system by default, but also has the unstable channel available for when I need it. NodeJS 8 isn't available on the stable channel, so manually import nixos-unstable. Other machines shouldn't be affected, as they're using nixpkgs unstable on other OSes.

Alan Pearce
commit

b8c5076a55617afa69abaee532948666b0c849b8

parent

07bf98c10dd5acbc70f54ba17fa0904995312310

1 file changed, 5 insertions(+), 1 deletion(-)

jump to
M nix/.config/nixpkgs/config.nixnix/.config/nixpkgs/config.nix
@@ -1,11 +1,15 @@
{ pkgs }: { packageOverrides = super: let self = super.pkgs; + pkgsUnstable = if super.pkgs.stdenv.isLinux + then import <nixos-unstable> {} + else super.pkgs; + in with self; rec { myEmacs = super.callPackage ./emacs.nix { emacs = if stdenv.isDarwin then emacs25Macport else emacs; }; - nodejs = pkgs.nodejs-8_x; + nodejs = pkgsUnstable.nodejs-8_x; }; allowUnfree = true;