From da31be84dad4c74c89a8babcf50d49b781c4bb20 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 28 May 2023 16:02:51 +0200 Subject: [PATCH] Add the unstable channel. --- .bauke/nix/stardust/configuration.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.bauke/nix/stardust/configuration.nix b/.bauke/nix/stardust/configuration.nix index 6f2c67c..bdfe0ae 100644 --- a/.bauke/nix/stardust/configuration.nix +++ b/.bauke/nix/stardust/configuration.nix @@ -1,6 +1,6 @@ # The main configuration file. -{ pkgs, ... }: +{ config, pkgs, ... }: { imports = [ @@ -16,7 +16,16 @@ }; nixpkgs = { - config.allowUnfree = true; + config = { + allowUnfree = true; + packageOverrides = pkgs: { + # Add the unstable channel as a separate package set. + unstable = import { + # Pass config through so everything is shared between all channels. + config = config.nixpkgs.config; + }; + }; + }; }; # Before changing this value read the documentation for this option!