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
|
@ -286,9 +286,10 @@ in {
|
|||
++ (optPkgs uniProgs "uniProgs")
|
||||
++ (optPkgs xpkgs "xpkgs");
|
||||
|
||||
services.emacs = {
|
||||
enable = (elem "emacs" cfg.pkgs);
|
||||
install = (elem "emacs" cfg.pkgs);
|
||||
services.emacs = mkIf (elem "emacs" cfg.pkgs) {
|
||||
defaultEditor = true;
|
||||
enable = true;
|
||||
install = true;
|
||||
package = emacs;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue