home: cached nix shell for lumi

auto-flake-update
Yorick van Pelt 2021-06-06 18:15:35 +02:00
parent be31d489c6
commit c4ba94746b
Signed by: yorick
GPG Key ID: D8D3CC6D951384DE
1 changed files with 6 additions and 0 deletions

View File

@ -197,6 +197,7 @@ in {
ls = "exa"; ls = "exa";
nr = ''nix repl "<nixpkgs>"''; nr = ''nix repl "<nixpkgs>"'';
nsp = "nix-shell -p"; nsp = "nix-shell -p";
lumi = "pushd ~/engineering/lumi; cached-nix-shell; popd";
}; };
interactiveShellInit = '' interactiveShellInit = ''
source ${thefuck-alias "fish"} source ${thefuck-alias "fish"}
@ -214,6 +215,10 @@ in {
initExtra = '' initExtra = ''
source ${thefuck-alias "bash"} source ${thefuck-alias "bash"}
eval "$(broot --print-shell-function bash)" eval "$(broot --print-shell-function bash)"
if [ "$IN_CACHED_NIX_SHELL" ]; then
eval "$shellHook"
unset shellHook
fi
''; '';
}; };
}; };
@ -271,6 +276,7 @@ in {
exa exa
cachix cachix
y-firefox y-firefox
cached-nix-shell
]); # qtwayland ]); # qtwayland
# systemd.user.services.gmi = { # systemd.user.services.gmi = {
# Unit = { # Unit = {