mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
23 lines
449 B
Nix
23 lines
449 B
Nix
{ config, pkgs, ... }:
|
|
let
|
|
legacy = (config.system.nixos.release == "20.09");
|
|
in
|
|
{
|
|
|
|
environment.systemPackages = if legacy then [ pkgs.vim ] else [ ];
|
|
|
|
programs = if legacy then { } else {
|
|
neovim = {
|
|
enable = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
configure = {
|
|
packages.sconfig.start = [ pkgs.vimPlugins.vim-nix ];
|
|
customRC = ''
|
|
set nowrap scrolloff=9
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|