Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rytswd/nix-direnv-template
A repository with bare minimum direnv setup
https://github.com/rytswd/nix-direnv-template
Last synced: about 1 month ago
JSON representation
A repository with bare minimum direnv setup
- Host: GitHub
- URL: https://github.com/rytswd/nix-direnv-template
- Owner: rytswd
- Created: 2024-07-22T10:30:45.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T11:06:52.000Z (5 months ago)
- Last Synced: 2024-07-26T12:34:17.849Z (5 months ago)
- Language: Nix
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+title: Nix based Direnv Template
* About This Repo
This repo is meant to showcase the power of ~direnv~ / ~nix-direnv~ with a very simple setup.Because this is the pattern I follow for many repos, it is a place to store most commonly used templates.
#+begin_quote
[!TIP]
If you want a more complete solution, you can check out the following:https://github.com/the-nix-way/dev-templates
This repository is not meant to cover all various use cases, but focused on simple getting started, which I can use for everyday development.
#+end_quote* Quick Getting Started
#+begin_quote
[!NOTE]
In order to follow this, you need to have Nix package manager setup in place. Follow the official guide at https://nixos.org/download/.
#+end_quoteBy running the following command, you should be able to create a new Nix Direnv setup.
#+begin_src bash
cd $(mktemp -d)
nix flake init -t "github:rytswd/nix-direnv-template"
#+end_srcAfter running this command, you can enable this by:
#+begin_src bash
direnv allow
#+end_src