mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
emacs: use lib.hm.types
instead of explicit import
This commit is contained in:
parent
95c8007b8f
commit
57ede1369f
1 changed files with 2 additions and 4 deletions
|
@ -4,8 +4,6 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
hmTypes = import ../lib/types.nix { inherit lib; };
|
|
||||||
|
|
||||||
cfg = config.programs.emacs;
|
cfg = config.programs.emacs;
|
||||||
|
|
||||||
# Copied from all-packages.nix, with modifications to support
|
# Copied from all-packages.nix, with modifications to support
|
||||||
|
@ -36,7 +34,7 @@ in
|
||||||
|
|
||||||
extraPackages = mkOption {
|
extraPackages = mkOption {
|
||||||
default = self: [];
|
default = self: [];
|
||||||
type = hmTypes.selectorFunction;
|
type = hm.types.selectorFunction;
|
||||||
defaultText = "epkgs: []";
|
defaultText = "epkgs: []";
|
||||||
example = literalExample "epkgs: [ epkgs.emms epkgs.magit ]";
|
example = literalExample "epkgs: [ epkgs.emms epkgs.magit ]";
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -48,7 +46,7 @@ in
|
||||||
|
|
||||||
overrides = mkOption {
|
overrides = mkOption {
|
||||||
default = self: super: {};
|
default = self: super: {};
|
||||||
type = hmTypes.overlayFunction;
|
type = hm.types.overlayFunction;
|
||||||
defaultText = "self: super: {}";
|
defaultText = "self: super: {}";
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
self: super: rec {
|
self: super: rec {
|
||||||
|
|
Loading…
Reference in a new issue