diff --git a/flake.nix b/flake.nix index a12cb0e..72df471 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,7 @@ let pkgs = nixpkgsFor.${system}; in ( rec { + # This sets the default devShell default = kakoune; kakoune = let @@ -107,10 +108,11 @@ pkgs.mkShellNoCC { inputsFrom = [self.outputs.packages.${system}.default]; packages = [myKakoune texlab pkgs.git pkgs.zathura pkgs.fzf]; + # TODO only try to start the kakoune session if no session with that + # name exists shellHook = '' alias ..="cd .." mkdir -p ${latexTmpDir} - touch /tmp/texlabLog export KAKOUNE_CONFIG_DIR="/dev/null/" kak -d -s ${name} & alias vim="kak -c ${name}" @@ -120,12 +122,18 @@ pkgs.mkShellNoCC { inputsFrom = [self.outputs.packages.${system}.default]; packages = [pkgs.texstudio pkgs.git]; + shellHook = '' + texstudio + ''; }; texmaker = pkgs.mkShellNoCC { inputsFrom = [self.outputs.packages.${system}.default]; packages = [pkgs.texmaker pkgs.git]; + shellHook = '' + texmaker + ''; }; }) );