As flake
is still an experimental feature of nix, --experimental-features 'nix-command flakes'
is needed for nix
command.
Add the following to ~/.config/nix/nix.conf
or /etc/nix/nix.conf
could avoid adding the option every time invoking nix
command.
experimental-features = nix-command flakes
Enabling direnv
would greatly enhance the development experience. Once enabled, all dependencies will be installed, and the shell will be augmented according to the specifications in flake.nix whenever you enter the project directory from your shell. The initial setup might take a bit longer when entering the project directory for the first time.
direnv
can be enabled or disabled using direnv allow
and direnv deny
respectively. If you're new to direnv
, it is also recommended to integrate it with your shell first.
nixpkgs-fmt
anddeadnix
forNix
shfmt
andshellcheck
for shell scriptastyle
for .c, .h files
When used together with direnv, the tools should be automatically discoverable by the shell.
- style: Formatting, linting and spell checking all files