diff options
author | Alan Pearce | 2021-01-06 17:40:57 +0100 |
---|---|---|
committer | Alan Pearce | 2021-01-06 17:40:57 +0100 |
commit | aac9eaf7652cb4b507d49b6ac392b3419fd0b52d (patch) | |
tree | b79346212054896adf3894ac0d5bba0a6759bcc3 | |
parent | ad0e7b8844ecf397af08ba91bb665b4f6fe2943d (diff) | |
download | nixfiles-aac9eaf7652cb4b507d49b6ac392b3419fd0b52d.tar.lz nixfiles-aac9eaf7652cb4b507d49b6ac392b3419fd0b52d.tar.zst nixfiles-aac9eaf7652cb4b507d49b6ac392b3419fd0b52d.zip |
nixpkgs: pass config to nixpkgs-unstable
-rw-r--r-- | user/settings/nixpkgs.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/user/settings/nixpkgs.nix b/user/settings/nixpkgs.nix index 0463596b..89a40a79 100644 --- a/user/settings/nixpkgs.nix +++ b/user/settings/nixpkgs.nix @@ -2,7 +2,8 @@ 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 = [ |