Emacs should only be the default editor if it is installed.
This commit is contained in:
parent
4e25317f37
commit
d53a5b9571
2 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,6 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.variables = mkIf (elem "etcvars" config.machine.conffiles) {
|
environment.variables = mkIf (elem "etcvars" config.machine.conffiles) {
|
||||||
EDITOR="emacsclient -ca nano";
|
|
||||||
NIXPKGS_ALLOW_UNFREE="1";
|
NIXPKGS_ALLOW_UNFREE="1";
|
||||||
WINEDLLOVERRIDES="winemenubuilder.exe=d";
|
WINEDLLOVERRIDES="winemenubuilder.exe=d";
|
||||||
LC_CTYPE="zh_CN.UTF-8";
|
LC_CTYPE="zh_CN.UTF-8";
|
||||||
|
|
|
@ -286,9 +286,10 @@ in {
|
||||||
++ (optPkgs uniProgs "uniProgs")
|
++ (optPkgs uniProgs "uniProgs")
|
||||||
++ (optPkgs xpkgs "xpkgs");
|
++ (optPkgs xpkgs "xpkgs");
|
||||||
|
|
||||||
services.emacs = {
|
services.emacs = mkIf (elem "emacs" cfg.pkgs) {
|
||||||
enable = (elem "emacs" cfg.pkgs);
|
defaultEditor = true;
|
||||||
install = (elem "emacs" cfg.pkgs);
|
enable = true;
|
||||||
|
install = true;
|
||||||
package = emacs;
|
package = emacs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue