Github-desktop on flakes

If I would like to stay with the flakes version of github-desktop, how to fix:

  1. redirection:

  1. also:
git config --global user.name "..."
The program 'git' is not in your PATH. It is provided by several packages.
You can make it available in an ephemeral shell by typing one of the following:
  nix-shell -p git

Thanks!

describes the issue. The flakes version does not work for me but the standard version does.

What is “flakes version”? Flakes are unrelated.

I am still learning.

environment.systemPackages = with pkgs; [
  #  vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
  #  wget
   gedit
   git
   github-desktop
   zef
   (pkgs.ollama.override { 
      acceleration = "rocm";
    })
];

worked for me instead of nix profile install nixpkgs#github-desktop. Any ideas?