Skip to content

Instantly share code, notes, and snippets.

@berdario
Created March 19, 2015 09:46
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 berdario/a33570d1f593c06ea328 to your computer and use it in GitHub Desktop.
Save berdario/a33570d1f593c06ea328 to your computer and use it in GitHub Desktop.
packages.nix
# I use this both inside configuration.nix with
## environment.systemPackages = (import ((builtins.getEnv "PWD") + "/packages.nix" ));
# and on the command line with
## nix-env -I ~ -f packages.nix -iA
#with (import (builtins.getEnv "HOME" + "/.nix-defexpr/channels_root/nixos/default.nix") {}).pkgs;
with (import "/home/dario/.nix-defexpr/channels_root/nixos/default.nix" {}).pkgs;
[
# software available in the nixos nix-channel
] ++
(with (import <nixpkgs> {});
[
# software (or versions of them) only available in nixpkgs trunk
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment