all repos — nixfiles @ aac9eaf7652cb4b507d49b6ac392b3419fd0b52d

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

nixpkgs: pass config to nixpkgs-unstable
Alan Pearce alan@alanpearce.eu
Wed, 06 Jan 2021 17:40:57 +0100
commit

aac9eaf7652cb4b507d49b6ac392b3419fd0b52d

parent

ad0e7b8844ecf397af08ba91bb665b4f6fe2943d

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M user/settings/nixpkgs.nixuser/settings/nixpkgs.nix
@@ -2,7 +2,8 @@ { config, pkgs, ... }: 
 let
   inherit (pkgs) stdenv;
-  unstablePkgs = if stdenv.isDarwin then import <nixpkgs-unstable> {} else import <nixos-unstable> {};
+  stableConfig = config.nixpkgs.config;
+  unstablePkgs = if stdenv.isDarwin then import <nixpkgs-unstable> { config = stableConfig; } else import <nixos-unstable> {};
 in
 {
   imports = [