Nix and NixOS

Flakes

Open shell in current Flake to evaluate a variable:

nix repl .

Nix-shell

Run a shell with a specific package:

# Open a new shell:
nix-shell -p octodns

# Run a specific command:
nix-shell -p octodns --run "octodns-sync --config-file=./config/production.yaml"