Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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