mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
22 lines
426 B
Nix
22 lines
426 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;
|
|
configure = {
|
|
packages.sconfig.start = [ pkgs.vimPlugins.vim-nix ];
|
|
customRC = ''
|
|
set nowrap scrolloff=9
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|