Complete NixOS noob here, just trying to get my system up and running.
I’m trying to port my existing multi-file Emacs configuration over in the most naive way imaginable using Home-Manager, because I currently have no other idea of how to do it:
{ pkgs, ... }:
{
programs.emacs = {
enable = true;
extraPackages = (epkgs: (with epkgs.elpaPackages; [
]) ++ (with epkgs.melpaPackages; [
use-package
gcmh
# etc ...
]) ++ (with epkgs; [
]));
};
home.file.".emacs.d/init.el".source = ./emacs/init.el;
home.file.".emacs.d/lisp/init-sysinfo.el".source = ./emacs/lisp/init-sysinfo.el;
home.file.".emacs.d/lisp/init-package.el".source = ./emacs/lisp/init-package.el;
# etc ...
}
However, whenover I do a home-manager build
with this configuration, I get the error:
error: undefined variable ‘gcmh’
Which is odd, because gcmh
is available right here on MELPA.
Am I doing something wrong? Is there a reason why certain packages are simply missing?
Thanks!