mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
23 lines
437 B
Nix
23 lines
437 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.user.utils.vim;
|
|
|
|
in
|
|
{ options.modules.user.utils.vim = { enable = mkEnableOption "user.utils.vim"; };
|
|
config = mkIf cfg.enable {
|
|
home = {
|
|
packages = with pkgs; [
|
|
vim
|
|
];
|
|
file.".vim" = {
|
|
source = ./config;
|
|
recursive = true;
|
|
};
|
|
};
|
|
programs.bash.shellAliases = {
|
|
vi = "${pkgs.vim}/bin/vim";
|
|
};
|
|
};
|
|
}
|