Remove editor module for NixOS

The dedicated editor module for NixOS has been removed seeing as it is
barely used. The only exception is Neovim which is moved into
`modules.dev.neovim`.
This commit is contained in:
foo-dogsquared 2021-12-25 20:35:55 +08:00
parent 6d33406492
commit 4c0f04266e
3 changed files with 16 additions and 32 deletions

View File

@ -25,8 +25,8 @@
enable = true;
shell.enable = true;
virtualization.enable = true;
neovim.enable = true;
};
editors.neovim.enable = true;
users.users.foo-dogsquared = {};
themes = {
disableLimit = true;

View File

@ -1,5 +1,4 @@
# The module for anything dev-related.
# If you want to see editor-specific modules, see `modules/editors.nix`.
{ config, options, lib, pkgs, ... }:
let cfg = config.modules.dev;
@ -11,6 +10,7 @@ in {
"installation of the shell utilities foo-dogsquared rely on";
virtualization.enable =
lib.mkEnableOption "virtualization-related stuff for development";
neovim.enable = lib.mkEnableOption "Neovim";
};
config = lib.mkIf cfg.enable (lib.mkMerge [
@ -82,5 +82,19 @@ in {
qemu.ovmf.enable = true;
};
})
(lib.mkIf cfg.neovim.enable {
programs.neovim = {
enable = true;
defaultEditor = true;
withNodeJs = true;
withRuby = true;
# I want the BLEEDING EDGE!
package = pkgs.neovim-nightly;
};
environment.systemPackages = with pkgs; [ editorconfig-core-c ];
})
]);
}

View File

@ -1,30 +0,0 @@
# Your text editor war arsenal.
{ config, options, lib, pkgs, ... }:
let cfg = config.modules.editors;
in {
options.modules.editors = {
neovim.enable = lib.mkEnableOption "Neovim and its components";
vscode.enable = lib.mkEnableOption "Visual Studio Code";
};
config = lib.mkMerge [
(lib.mkIf cfg.neovim.enable {
programs.neovim = {
enable = true;
defaultEditor = true;
withNodeJs = true;
withRuby = true;
# I want the BLEEDING EDGE!
package = pkgs.neovim-nightly;
};
environment.systemPackages = with pkgs; [ editorconfig-core-c ];
})
(lib.mkIf cfg.vscode.enable {
environment.systemPackages = with pkgs; [ vscode editorconfig-core-c ];
})
];
}