Ghci settings in nixOS

I want to set up ghci so that I dont’ have to :set editor every time. I found a guide that says this should be done in ghci.conf.
nixOS has its own way of managing config, and the required file isn’t where I’d expect.
At nix discord I got an advice to use home-manager, but its another thing to learn and I don’t wanna figure out whole tool to do one adjustment.

Thank you.

If you’re not using home-manager then you can put .ghci (not ghci.conf!) in the normal place, so ~/config/.ghci.

1 Like

Adding environment.variables.EDITOR='nvim' to configuration.nix was suggested, and worked