Files
Mans Ziesel 6129413fa7 Fix vim system config: use environment.etc.vimrc instead of programs.vim
programs.vim.extraConfig does not exist in the NixOS module. Switch to
environment.etc."vimrc".text which writes /etc/vimrc, read by vim for
all users.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 17:15:39 +02:00

26 lines
443 B
Nix

{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.vim ];
environment.etc."vimrc".text = ''
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
set number
set relativenumber
set autoindent
set hlsearch
set ignorecase
set incsearch
set smartcase
set nowrap
set laststatus=2
set noerrorbells
set mouse=a
set background=dark
set history=1000
colorscheme slate
'';
}