Starting a nix flake
- Create a new directory for flakes
mkdir nix-flakes
cd nix-flakes
- Initialize nix flake
nix flake init
- Initialize a git repository
git init
- Add the flake.nix file
git add .
- Run nix build to build the flake
# -L for build logs
nix build -L .