refactor(nvim): nixify editor bash config
This commit is contained in:
@@ -6,15 +6,19 @@
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.nvim;
|
||||
in
|
||||
{
|
||||
options.nvim.enable = lib.mkEnableOption "nvim";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [
|
||||
inputs.nvim.packages.${pkgs.stdenv.hostPlatform.system}.nvim
|
||||
];
|
||||
config = lib.mkIf config.nvim.enable {
|
||||
home = {
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
SUDO_EDITOR = "nvim";
|
||||
SYSTEMD_EDITOR = "nvim";
|
||||
};
|
||||
packages = [
|
||||
inputs.nvim.packages.${pkgs.stdenv.hostPlatform.system}.nvim
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user