summary refs log tree commit diff stats
path: root/user/settings/nixpkgs.nix
diff options
context:
space:
mode:
authorAlan Pearce2020-08-24 09:52:20 +0200
committerAlan Pearce2020-08-24 10:03:01 +0200
commitefc4a4f62392ee31dbd74c008f5de7162d8add20 (patch)
tree2df61d296b20f36a164de608418edbc7292ac776 /user/settings/nixpkgs.nix
parentbcb93216495a987dffd8e1626b0704a3ef5e7e29 (diff)
downloadnixfiles-efc4a4f62392ee31dbd74c008f5de7162d8add20.tar.lz
nixfiles-efc4a4f62392ee31dbd74c008f5de7162d8add20.tar.zst
nixfiles-efc4a4f62392ee31dbd74c008f5de7162d8add20.zip
Enable cross-platform use of unstable channel
Diffstat (limited to 'user/settings/nixpkgs.nix')
-rw-r--r--user/settings/nixpkgs.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/settings/nixpkgs.nix b/user/settings/nixpkgs.nix
index 364d2020..0463596b 100644
--- a/user/settings/nixpkgs.nix
+++ b/user/settings/nixpkgs.nix
@@ -1,5 +1,9 @@
 { config, pkgs, ... }:
 
+let
+  inherit (pkgs) stdenv;
+  unstablePkgs = if stdenv.isDarwin then import <nixpkgs-unstable> {} else import <nixos-unstable> {};
+in
 {
   imports = [
     ./nix.nix
@@ -8,6 +12,7 @@
     (self: super: {
       firefox-bin-unwrapped = super.firefox-bin-unwrapped.override { systemLocale = "en-GB"; };
       firefox-devedition-bin-unwrapped = super.firefox-devedition-bin-unwrapped.override { systemLocale = "en-GB"; };
+      unstable = unstablePkgs;
     })
   ];
 }