Files
nixos-configs/hosts/pinwheel/modules/vim/default.nix
2023-10-05 22:39:02 +02:00

24 lines
346 B
Nix

{ lib, config, ... }:
let
gitEnabled = config.mod.git.enable;
in
{
home-manager.users.alex = {
programs.vim = {
enable = true;
extraConfig = ''
set noswapfile
'';
};
programs.git = lib.mkIf gitEnabled {
extraConfig = {
core = {
editor = "vim";
};
};
};
};
}