Skip to content

Instantly share code, notes, and snippets.

@tbenst
Forked from LnL7/lnl-overlay.nix
Last active October 27, 2018 04:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbenst/0e2c7bd0219eda87e3915182071f224b to your computer and use it in GitHub Desktop.
Save tbenst/0e2c7bd0219eda87e3915182071f224b to your computer and use it in GitHub Desktop.
self: super:
{
# Install overlay:
# > mkdir -p .config/nixpkgs/overlays
# # use ? to avoid caching
# > curl -L "https://gist.github.com/tbenst/0e2c7bd0219eda87e3915182071f224b/raw?$(date +%s%N)" -o ~/.config/nixpkgs/overlays/tb.nix
# > nix-env -f '<nixpkgs>' -r -iA userPackages
userPackages = super.userPackages or {} // {
hello = self.hello;
nix = self.nix;
hexchat = self.hexchat;
fzf = self.fzf;
ripgrep = self.ripgrep;
atom = self.atom;
nix-rebuild = super.writeScriptBin "nix-rebuild"
''
#!${super.stdenv.shell}
curl -L "https://gist.github.com/tbenst/0e2c7bd0219eda87e3915182071f224b/raw?$(date +%s%N)" -o ~/.config/nixpkgs/overlays/tb.nix
exec nix-env -f '<nixpkgs>' -r -iA userPackages "$@"
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment