bradparker / servant-beam-realworld-example-app

Exemplary fullstack Medium.com clone powered by Servant and Beam
BSD 3-Clause "New" or "Revised" License
33 stars 6 forks source link

Add secret to .envrc to make running in dev easier #6

Closed bradparker closed 5 years ago

benkolera commented 5 years ago

@bradparker Oh, I totally got distracted setting up home-manager (as the longest possible method of getting direnv setup, haha) and forgot about this PR. You may find the home manager stuff cool though: https://github.com/benkolera/nix/blob/master/home-manager/home.nix . Direnv, lorri (a direnv thing for nix-shells where it'll automatically rebuild direnvs when you change the nix files) and spacemacs all setup in a single nixfile. Pretty rad.

bradparker commented 5 years ago

@benkolera I'm some of the way there :D https://github.com/bradparker/dotfiles/blob/master/nixpkgs/home.nix

I'm pretty curious about Lorri. I have gotten into the habit of nix-shelling without thinking too much about it, but miss the hooks of say nvm, chruby etc.

The shell.nix in this repo should give you direnv but ... not sure how automated it all is. You have to enter it and then explicitly allow the contents, it should at least automatically ask for a direnv allow now as a result of https://github.com/bradparker/servant-beam-realworld-example-app/commit/09a9e495388a0d37d5534800a640ae2e6e358d2e

All good about the PR, don't wanna distract you too much :)