Nix : Use flakes in shell.
This commit is contained in:
parent
834de37abe
commit
1e3169125c
|
@ -67,7 +67,7 @@ function nix_shell() {
|
||||||
local name="${1,,}"
|
local name="${1,,}"
|
||||||
|
|
||||||
if [[ "${name}" = "" ]]; then
|
if [[ "${name}" = "" ]]; then
|
||||||
NIX_SHELL=$(parse_alnum "${PWD##*/}") nix develop -f ./flake.nix
|
NIX_SHELL=$(parse_alnum "${PWD##*/}") nix develop
|
||||||
else
|
else
|
||||||
NIX_SHELL="${name}" nix develop -f ~/.config/linux/shell/"${name^}".nix
|
NIX_SHELL="${name}" nix develop -f ~/.config/linux/shell/"${name^}".nix
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue