Skip to content

Instantly share code, notes, and snippets.

@freeman42x
Created August 19, 2019 11:04
Show Gist options
  • Save freeman42x/a8c1ca73682c19330f80a001d343e52c to your computer and use it in GitHub Desktop.
Save freeman42x/a8c1ca73682c19330f80a001d343e52c to your computer and use it in GitHub Desktop.
how to add unstable correctly to config.nix
{
allowUnfree = true;
packageOverrides = pkgs_: {
unstable = import <nixpkgs-unstable> {
# pass the nixpkgs config to the unstable alias
# to ensure `allowUnfree = true;` is propagated:
config = config.nixpkgs.config;
};
let jdk = openjdk11; in {
all = with pkgs; buildEnv {
name = "all";
paths = [
htop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment