Using Nix for Productivity

How I use Nix on my day

I love automations, and set up environments to development is very stressfull. Since I’ve been using Nix I’ve been had less work to configure my packages and my configurations.

And make your environment productivy is really easy. In some steps.

You need to have the package manager Nix installed on your system. Also need direnv, for integration, that enables automations.

Install Nix in whatever Linux distribution is simple, just run the installer:

Terminal window
sh <(curl -L https://nixos.org/nix/install) --daemon

To install direnv you can use the package manager for your Linux distribution, like apt or pacman:

Terminal window
sudo apt install direnv

or

Terminal window
sudo pacman -S direnv

Check documentation for more options installation.

To finish the setup, create the Nix config to enable Flakes. Just run in terminal:

Terminal window
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

And restart the nix daemon:

Terminal window
sudo systemctl restart nix-daemon

And that is all! You now can run Nix and build flakes for make your dev environment more productivy.

Fonts: NixOs, Flakes, Direnv Installation