Nix Snippets

I use direnv to automatically get into flake shell as soon as I entre the directory which contain the flake.nix, the content of .envrc file is: use flake Most of the time I just need to use the package available in my shell for my dev work and the snipet that I use is: { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils....

March 4, 2024 · 2 min · Upendra Upadhyay