sourcephile
/
git
/
sourcephile-nix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dabaf7b
)
nix: use nix-direnv
author
Julien Moutinho
<julm@sourcephile.fr>
Wed, 26 May 2021 22:56:14 +0000
(
00:56
+0200)
committer
Julien Moutinho
<julm@sourcephile.fr>
Wed, 26 May 2021 22:56:24 +0000
(
00:56
+0200)
.envrc
patch
|
blob
|
history
diff --git
a/.envrc
b/.envrc
index 40cbab6582dcd71fa832f103316982551f7b76fa..3550a30f2de389e537ee40ca5e64a77dc185c79b 100644
(file)
--- a/
.envrc
+++ b/
.envrc
@@
-1,10
+1
@@
-use_flake() {
- watch_file flake.nix
- watch_file flake.lock
- profile="$(direnv_layout_dir)"/flake-profile
- mkdir -p "$(direnv_layout_dir)"
- eval "$(time nix print-dev-env --show-trace --profile "$profile" || echo false)" &&
- nix-store --add-root "shell.root" --indirect --realise "$profile" &&
- nix-env --delete-generations +1 --profile "$profile"
-}
use flake