From 57ede1369f991b06643e96d50df7148e42871499 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 26 Jan 2020 11:26:33 +0100 Subject: [PATCH] emacs: use `lib.hm.types` instead of explicit import --- modules/programs/emacs.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/programs/emacs.nix b/modules/programs/emacs.nix index b91578f91..987a9f243 100644 --- a/modules/programs/emacs.nix +++ b/modules/programs/emacs.nix @@ -4,8 +4,6 @@ with lib; let - hmTypes = import ../lib/types.nix { inherit lib; }; - cfg = config.programs.emacs; # Copied from all-packages.nix, with modifications to support @@ -36,7 +34,7 @@ in extraPackages = mkOption { default = self: []; - type = hmTypes.selectorFunction; + type = hm.types.selectorFunction; defaultText = "epkgs: []"; example = literalExample "epkgs: [ epkgs.emms epkgs.magit ]"; description = '' @@ -48,7 +46,7 @@ in overrides = mkOption { default = self: super: {}; - type = hmTypes.overlayFunction; + type = hm.types.overlayFunction; defaultText = "self: super: {}"; example = literalExample '' self: super: rec {