mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
24 lines
462 B
Nix
Executable File
24 lines
462 B
Nix
Executable File
# All of my text editors (and IDEs) modules are to be put here.
|
|
# From Visual Studio Code, Emacs, Neovim, and whatnot.
|
|
# The entryway to all of your text editors and IDEs.
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
{
|
|
imports = [
|
|
./emacs.nix
|
|
./neovim.nix
|
|
];
|
|
|
|
options.modules.editors = {
|
|
default = mkOption {
|
|
type = types.str;
|
|
default = "vim";
|
|
};
|
|
};
|
|
|
|
config = {
|
|
my.env.EDITOR = config.modules.editors.default;
|
|
};
|
|
}
|