From 65b6be1e8d0bf866fc8fbcc017d00aee58945cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Mon, 31 Oct 2022 14:06:42 +0000 Subject: [PATCH] extract variables --- nixos/home-manager/programs/vim.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/home-manager/programs/vim.nix b/nixos/home-manager/programs/vim.nix index 33439dc3..83b85c3e 100644 --- a/nixos/home-manager/programs/vim.nix +++ b/nixos/home-manager/programs/vim.nix @@ -1,15 +1,15 @@ { config, pkgs, lib, inputs, system, ... }: let + unstablePackages = inputs.nixpkgs-nixos-unstable.legacyPackages."${system}"; nil = inputs.nil.packages."${system}".default; - cocPackage = - inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".vimPlugins.coc-nvim; + cocPackage = unstablePackages.vimPlugins.coc-nvim; + nvimPackage = unstablePackages.neovim-unwrapped; in { home.file.".vimrc".source = ../../../.vimrc; home.packages = with pkgs; [ ripgrep ]; programs.neovim = { enable = true; - package = - inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".neovim-unwrapped; + package = nvimPackage; coc = { enable = true; package = cocPackage;