Make use of the flake.nix and $ nix develop . in the command-line to install Sage and Octave.
flake.nix
$ nix develop .