1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

emacs: use lib.hm.types instead of explicit import

This commit is contained in:
Robert Helgesson 2020-01-26 11:26:33 +01:00
parent 95c8007b8f
commit 57ede1369f
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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 {