Skip to content

Commit

Permalink
chore: minor tweaks to nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
johnae committed Aug 29, 2024
1 parent 8987d2e commit 91067fa
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 87 deletions.
16 changes: 9 additions & 7 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.4.0/direnvrc" "sha256-XQzUAvL6pysIJnRJyR7uVpmUSZfc7LSgWQwq/4mBr1U="
# reload when these files change
nix_direnv_watch_file flake.nix
nix_direnv_watch_file flake.lock
nix_direnv_watch_file flake/*.nix
nix_direnv_watch_file devenv/*.nix
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="

watch_file devenv.nix
watch_file flake.nix
watch_file flake.lock
watch_file flake/*.nix
watch_file devenv/*.nix

if ! use flake . --impure
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes and hit enter to try again." >&2
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
PATH_add /run/wrappers/bin
2 changes: 1 addition & 1 deletion devenv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
echo -e "
{bold}{160}${name}{reset}
This is a basic rust application flake.
Persway - the evil, scheming, ipc daemon
"
'';
}
Loading

0 comments on commit 91067fa

Please sign in to comment.