From 564cbf3b0ca5a65e7f3d8e2209086ea8ca551091 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Wed, 19 Oct 2022 11:21:36 +0200 Subject: [PATCH] [nix] add tex nix-shell --- files/zsh/.zshrc | 5 +++-- tex.nix | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 tex.nix diff --git a/files/zsh/.zshrc b/files/zsh/.zshrc index e8aace7..d746237 100644 --- a/files/zsh/.zshrc +++ b/files/zsh/.zshrc @@ -37,6 +37,7 @@ esac # ============================== Aliases alias c='clear' alias t='tmux a || tmux' +alias tex='nix-shell ~/.dots/tex.nix' alias l='ls -lFh' #size,show type,human readable alias la='ls -lAFh' #long list,show almost all,show type,human readable @@ -50,8 +51,6 @@ alias -g G='| grep -i' alias -g L='| less' alias gg='git grep $1' -alias code='/usr/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland . 2>/dev/null' - # tools ocr() { if [ -z $1 ]; then @@ -303,3 +302,5 @@ bindkey '^Z' fancy-ctrl-z if [ -f ~/.zshrc_local ]; then source ~/.zshrc_local fi + +if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer diff --git a/tex.nix b/tex.nix new file mode 100644 index 0000000..129c029 --- /dev/null +++ b/tex.nix @@ -0,0 +1,7 @@ +with (import {}); +mkShell { + buildInputs = [ + python3 + texlive.combined.scheme-full + ]; +}