mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
efc578e961
- Add `modules.desktop.cleanup` for the usual cleanup activties in NixOS. - Update to proper descriptions for module options added with `lib.mkEnableOption`. - Additional packages for various modules. - Deleted `modules/home-manager/alacritty`. It is pretty useless though. :(
31 lines
755 B
Nix
31 lines
755 B
Nix
# 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 ];
|
|
})
|
|
];
|
|
}
|