mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Move the neovim config to the system level
This commit is contained in:
parent
926d5bdc51
commit
c7f838feae
4 changed files with 7 additions and 24 deletions
|
|
@ -35,12 +35,14 @@
|
|||
|
||||
console.keyMap = "de-latin1-nodeadkeys";
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.git
|
||||
pkgs.neovim
|
||||
];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
};
|
||||
|
||||
environment.variables.EDITOR = "nvim";
|
||||
environment.systemPackages = [pkgs.git];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (pkgs.lib.getName pkg) [
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
./shell
|
||||
./ssh-client.nix
|
||||
./git.nix
|
||||
./neovim.nix
|
||||
./kitty.nix
|
||||
./equalizer
|
||||
./sops.nix
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.neovim.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.neovim.enable {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
ssh-client.enable = true;
|
||||
git.enable = true;
|
||||
neovim.enable = true;
|
||||
vscode.enable = true;
|
||||
kitty.enable = true;
|
||||
equalizer.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue