]> Git — Sourcephile - sourcephile-nix.git/blob - .envrc
losurdo: enable xserver
[sourcephile-nix.git] / .envrc
1 use_flake() {
2 watch_file flake.nix
3 watch_file flake.lock
4 mkdir -p "$(direnv_layout_dir)"
5 eval "$(time nix print-dev-env --show-trace --profile "$(direnv_layout_dir)"/flake-profile || echo false)" &&
6 nix-store --add-root "shell.root" --indirect --realise "$(direnv_layout_dir)"/flake-profile
7 rm -rf "$(direnv_layout_dir)"/flake-profile
8 }
9 use flake