I’m trying to install go_1_18 globally in my system. I added the entry to my configuration file, and after trying to rebuild with switch, the following error pops-up:
building Nix...
building the system configuration...
error: undefined variable 'go_1_18' at /etc/nixos/configuration.nix:116:5
(use '--show-trace' to show detailed location information)
Output of nix-channel --list:
nixos https://nixos.org/channels/nixos-unstable
When I try to run nix-env -iA nixos.go_1_18 it works. Any ideas?
unpacking 'https://github.com/nix-community/home-manager/archive/master.tar.gz'...
building Nix...
building the system configuration...
error: attribute 'go_1_18' missing, at /etc/nixos/configuration.nix:116:5
(use '--show-trace' to show detailed location information)