mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
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:
parent
6d33406492
commit
4c0f04266e
@ -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;
|
||||
|
@ -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 ];
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
@ -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 ];
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user