Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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_quote

By 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_src

After running this command, you can enable this by:
#+begin_src bash
direnv allow
#+end_src