mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-25 00:19:12 +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;
|
enable = true;
|
||||||
shell.enable = true;
|
shell.enable = true;
|
||||||
virtualization.enable = true;
|
virtualization.enable = true;
|
||||||
|
neovim.enable = true;
|
||||||
};
|
};
|
||||||
editors.neovim.enable = true;
|
|
||||||
users.users.foo-dogsquared = {};
|
users.users.foo-dogsquared = {};
|
||||||
themes = {
|
themes = {
|
||||||
disableLimit = true;
|
disableLimit = true;
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# The module for anything dev-related.
|
# The module for anything dev-related.
|
||||||
# If you want to see editor-specific modules, see `modules/editors.nix`.
|
|
||||||
{ config, options, lib, pkgs, ... }:
|
{ config, options, lib, pkgs, ... }:
|
||||||
|
|
||||||
let cfg = config.modules.dev;
|
let cfg = config.modules.dev;
|
||||||
@ -11,6 +10,7 @@ in {
|
|||||||
"installation of the shell utilities foo-dogsquared rely on";
|
"installation of the shell utilities foo-dogsquared rely on";
|
||||||
virtualization.enable =
|
virtualization.enable =
|
||||||
lib.mkEnableOption "virtualization-related stuff for development";
|
lib.mkEnableOption "virtualization-related stuff for development";
|
||||||
|
neovim.enable = lib.mkEnableOption "Neovim";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
@ -82,5 +82,19 @@ in {
|
|||||||
qemu.ovmf.enable = true;
|
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