Cpp development with NixOS and CLion IDE

Dear community, I joined the ranks of NixOS users and I wonder if you would do me a favour to help with configuration of my development environment.

I work with framework GEANT4 (it presented in nixpkgs: link) and its request to set some environment variables.

I can use nix-shell with this configuration:

{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
    buildInputs = with pkgs; [
        geant4.data.G4ABLA
        geant4.data.G4INCL
        geant4.data.G4PhotonEvaporation
        geant4.data.G4RealSurface
        geant4.data.G4EMLOW
        geant4.data.G4NDL
        geant4.data.G4PII
        geant4.data.G4SAIDDATA
        geant4.data.G4ENSDFSTATE
        geant4.data.G4PARTICLEXS
        geant4.data.G4RadioactiveDecay
    ];
}

and run clion from console, but I prefer run GUI application from desktop.entries.
Can I configure NixOS for system-wide setup this variables or create CLion configuration for run in nix-shell without loss of IDE features (such as run in debugger)?

I tried to use next config, but this don’t activate setupHook:

{ config, pkgs, ...} : 

{
    environment.systemPackages = with pkgs; [
        root
        (geant4.override{
            enableMultiThreading = false;
            enableGDML = true;
#            enableQT = true;
            })
        geant4.data.G4ABLA
        geant4.data.G4INCL
        geant4.data.G4PhotonEvaporation
        geant4.data.G4RealSurface 
        geant4.data.G4EMLOW
        geant4.data.G4NDL
        geant4.data.G4PII
        geant4.data.G4SAIDDATA 
        geant4.data.G4ENSDFSTATE
        geant4.data.G4PARTICLEXS 
        geant4.data.G4RadioactiveDecay
    ];
}