If installing tracee via nix please ensure you're running a kernel with libbpf CO-RE support, see Tracee's prerequisites for more info.
Direct issues installing tracee via nix through the channels mentioned here (non-CO-RE not supported)
nix-env --install -A nixpkgs.tracee
Or through your configuration as usual
# your other config ... environment.systemPackages = with pkgs; [ # your other packages ... tracee ];
# your other config ... home.packages = with pkgs; [ # your other packages ... tracee ];