Skip to content

Instantly share code, notes, and snippets.

@fuerbringer
Last active April 16, 2018 19:32
Show Gist options
  • Save fuerbringer/bc772e93769018093ebbbc194ea7ae1f to your computer and use it in GitHub Desktop.
Save fuerbringer/bc772e93769018093ebbbc194ea7ae1f to your computer and use it in GitHub Desktop.
Mixed channel NixOS derivations
# Have different channels added
$ nix-channel --list
beta https://nixos.org/channels/nixos-16.09
nixos https://nixos.org/channels/nixos-unstable
# Install derivation(s) for current user
$ nix-env -qaP | grep pirate-get
beta.python35Packages.pirate-get python3.5-pirate-get-0.2.8
nixos.python35Packages.pirate-get python3.5-pirate-get-0.2.9
# Install derivation(s) globally in configuration.nix
{ config, pkgs, ... }:
let
unstable = import <nixos-unstable> {};
in {
environment.systemPackages = [ unstable.packagehere ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment