summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2021-01-06 17:40:57 +0100
committerAlan Pearce2021-01-06 17:40:57 +0100
commitaac9eaf7652cb4b507d49b6ac392b3419fd0b52d (patch)
treeb79346212054896adf3894ac0d5bba0a6759bcc3 /user/settings
parentad0e7b8844ecf397af08ba91bb665b4f6fe2943d (diff)
downloadnixfiles-aac9eaf7652cb4b507d49b6ac392b3419fd0b52d.tar.lz
nixfiles-aac9eaf7652cb4b507d49b6ac392b3419fd0b52d.tar.zst
nixfiles-aac9eaf7652cb4b507d49b6ac392b3419fd0b52d.zip
nixpkgs: pass config to nixpkgs-unstable
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/nixpkgs.nix3
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 = [