Skip to content

Instantly share code, notes, and snippets.

@jlesquembre
Created July 5, 2020 14:49
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 jlesquembre/caf6356944be6b55ea767dc2832b77ec to your computer and use it in GitHub Desktop.
Save jlesquembre/caf6356944be6b55ea767dc2832b77ec to your computer and use it in GitHub Desktop.
Nix mixing sources
{ config, pkgs, ... }:
let
# 20.03 channel
pkgs-2003 = import (fetchTarball https://github.com/nixos/nixpkgs-channels/archive/nixos-20.03.tar.gz) {};
# unstable channel
pkgs-unstable = import (fetchTarball https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz) {};
# specific commit
pkgs-22a81aa = import (fetchTarball https://github.com/nixos/nixpkgs/archive/22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1.tar.gz) {};
in
{
environment.systemPackages = [
# from <nixpkgs>
pkgs.tree
# from 20.03
pkgs-2003.hello
# from unstable
pkgs-unstable.neovim
# from 58d44a3 commit
pkgs-22a81aa.janet
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment