Adds Nix flake configuration for the project, enabling reproducible builds and dependency management using gomod2nix. Also removes unused code from main.go.