update channels compatibility aliases

This commit is contained in:
Sean Buckley 2022-03-29 14:22:10 -04:00
parent 4000631c7f
commit 935d3f4467

View file

@ -100,10 +100,19 @@
alias hd='hexdump -C' alias hd='hexdump -C'
alias catc='${pkgs.vimpager-latest}/bin/vimpager --force-passthrough' alias catc='${pkgs.vimpager-latest}/bin/vimpager --force-passthrough'
alias nix-env="echo nix-env is disabled #" alias nix-env="echo nix-env is disabled #"
alias nix-index='nix-index -f="$(nix eval nixpkgs#path)"'
alias nix-what-depends-on='nix-store --query --referrers' alias nix-what-depends-on='nix-store --query --referrers'
alias day='date "+%Y-%m-%d"' alias day='date "+%Y-%m-%d"'
''; '' +
# compatibility for programs that need $NIX_PATH set:
lib.concatMapStrings
(x: ''
alias ${x}='NIX_PATH="nixpkgs=$(nix eval nixpkgs#path)" ${x}'
'')
[
"nix-build"
"nix-index"
"nix-shell"
];
programs.neovim = { programs.neovim = {
enable = true; enable = true;