move nix-env mask from systemPackages to bashrc

This commit is contained in:
Sean Buckley 2021-04-08 22:44:57 -04:00
parent 49d9ebb5e3
commit be18d2f7c7
2 changed files with 1 additions and 2 deletions

View file

@ -14,8 +14,6 @@
systemd.tmpfiles.rules = [ "e /nix/var/log - - - 30d" ]; systemd.tmpfiles.rules = [ "e /nix/var/log - - - 30d" ];
environment.systemPackages = [ (pkgs.writeShellScriptBin "nix-env" "exec echo nix-env is disabled") ];
zramSwap.enable = true; zramSwap.enable = true;
networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName); networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);

View file

@ -86,6 +86,7 @@ in
alias sha256sum-base32='nix hash-file --type sha256 --base32' alias sha256sum-base32='nix hash-file --type sha256 --base32'
alias pip_install='nix run nixpkgs.python3.pkgs.pip -c pip install --user -UI pip setuptools' alias pip_install='nix run nixpkgs.python3.pkgs.pip -c pip install --user -UI pip setuptools'
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 #"
function _update_ps1() { function _update_ps1() {
PS1="\n$(${pkgs.powerline-go}/bin/powerline-go ${lib.concatStringsSep " " powerlineOpts})$ " PS1="\n$(${pkgs.powerline-go}/bin/powerline-go ${lib.concatStringsSep " " powerlineOpts})$ "