Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created August 20, 2019 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthew-piziak/277837b90446bdb45aa1398a79c371f5 to your computer and use it in GitHub Desktop.
Save matthew-piziak/277837b90446bdb45aa1398a79c371f5 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
let
sourceUnstable = "https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz";
tarballUnstable = fetchTarball sourceUnstable;
source1903 = "https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz";
tarball1903 = fetchTarball source1903;
in {
nixpkgs = {
config = {
allowUnfree = true;
packageOverrides = pkgs: {
unstable = import tarballUnstable { config = config.nixpkgs.config; };
stable1903 = import tarball1903 { config = config.nixpkgs.config; };
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment