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