nixpkgs: pass config to nixpkgs-unstable
Alan Pearce alan@alanpearce.eu
Wed, 06 Jan 2021 17:40:57 +0100
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M user/settings/nixpkgs.nix → user/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 = [