diff --git a/modules/programs/emacs.nix b/modules/programs/emacs.nix
index 78c136c98..b91578f91 100644
--- a/modules/programs/emacs.nix
+++ b/modules/programs/emacs.nix
@@ -12,7 +12,7 @@ let
# overrides.
emacsPackages =
let
- epkgs = pkgs.emacsPackagesNgGen cfg.package;
+ epkgs = pkgs.emacsPackagesGen cfg.package;
in
epkgs.overrideScope' cfg.overrides;
emacsWithPackages = emacsPackages.emacsWithPackages;
@@ -42,7 +42,7 @@ in
description = ''
Extra packages available to Emacs. To get a list of
available packages run:
- nix-env -f '<nixpkgs>' -qaP -A emacsPackagesNg.
+ nix-env -f '<nixpkgs>' -qaP -A emacsPackages.
'';
};