diff --git a/common/dotfiles/git.nix b/common/dotfiles/git.nix index b3849f96..a1143561 100644 --- a/common/dotfiles/git.nix +++ b/common/dotfiles/git.nix @@ -1,8 +1,10 @@ -programs.git = { - enable = true; - userName = "albert"; - userEmail = "albert@sysctl.io"; - extraConfig = { - credential.helper = "cache --timeout=25920000"; +{ config, pkgs, ... }: { + programs.git = { + enable = true; + userName = "albert"; + userEmail = "albert@sysctl.io"; + extraConfig = { + credential.helper = "cache --timeout=25920000"; + }; }; -}; \ No newline at end of file +} \ No newline at end of file diff --git a/common/dotfiles/vim.nix b/common/dotfiles/vim.nix index ef111c41..f6cbdeef 100644 --- a/common/dotfiles/vim.nix +++ b/common/dotfiles/vim.nix @@ -1,21 +1,23 @@ -# https://nixos.wiki/wiki/Vim -programs.vim = { - enable = true; - plugins = with pkgs.vimPlugins; [ vim-airline ]; - settings = { ignorecase = true; }; - extraConfig = '' - set mouse=a - set number - syntax on - set hlsearch - set ignorecase - set smartcase - set autoindent - set ruler - set shiftwidth=2 - set expandtab - set softtabstop=2 - colorscheme slate - set cursorline - ''; -}; \ No newline at end of file +{ config, pkgs, ... }: { + # https://nixos.wiki/wiki/Vim + programs.vim = { + enable = true; + plugins = with pkgs.vimPlugins; [ vim-airline ]; + settings = { ignorecase = true; }; + extraConfig = '' + set mouse=a + set number + syntax on + set hlsearch + set ignorecase + set smartcase + set autoindent + set ruler + set shiftwidth=2 + set expandtab + set softtabstop=2 + colorscheme slate + set cursorline + ''; + }; +} \ No newline at end of file