Skip to content

Instantly share code, notes, and snippets.

@lheckemann
Forked from LnL7/lnl-overlay.nix
Created October 23, 2018 16:29
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 lheckemann/1d388f805b844262cb1bc43068d56f1a to your computer and use it in GitHub Desktop.
Save lheckemann/1d388f805b844262cb1bc43068d56f1a to your computer and use it in GitHub Desktop.
self: super:
{
# Install overlay:
# curl https://gist.githubusercontent.com/LnL7/570349866bb69467d0caf5cb175faa74/raw/3f3d53fe8e8713ee321ee894ecf76edbcb0b3711/lnl-overlay.nix -o ~/.config/nixpkgs/overlays/lnl.nix
userPackages = super.userPackages or {} // {
hello = self.hello;
# add more packages here...
nix-rebuild = super.writeScriptBin "nix-rebuild"
''
#!${super.stdenv.shell}
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