mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
init
This commit is contained in:
commit
259d9ed5a0
111 changed files with 7219 additions and 0 deletions
24
user/modules/vim/default.nix
Normal file
24
user/modules/vim/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.vim;
|
||||
|
||||
in
|
||||
{ options.modules.user.vim = { enable = mkEnableOption "user.vim"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.bash.shellAliases = {
|
||||
vi = "${pkgs.vim}/bin/vim";
|
||||
};
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
vim
|
||||
];
|
||||
file.".vim" = {
|
||||
source = ./vim;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue