Skip to content

Instantly share code, notes, and snippets.

@dmvianna
Created February 16, 2018 08:11
Show Gist options
  • Save dmvianna/6245c4ec0bf7f303a79b550e130b8e2a to your computer and use it in GitHub Desktop.
Save dmvianna/6245c4ec0bf7f303a79b550e130b8e2a to your computer and use it in GitHub Desktop.
# run with
# $ nix-env -iA userPackages -f '<nixpkgs>'
# to install packages functionally
with (import <nixpkgs> {});
{
packageOverrides = pkgs: with pkgs; {
userPackages = buildEnv {
inherit ((import <nixpkgs/nixos> {}).config.system.path)
pathsToLink ignoreCollisions postBuild;
extraOutputsToInstall = [ "man" ];
name = "user-packages";
paths = [
chromium
firefox
mg
psmisc
stack
wpa_supplicant_gui
xorg.xmessage
xorg.xmodmap
];
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment