extract variables

This commit is contained in:
Cyryl Płotnicki 2022-10-31 14:06:42 +00:00
parent d80e2b7018
commit 65b6be1e8d

View file

@ -1,15 +1,15 @@
{ config, pkgs, lib, inputs, system, ... }: { config, pkgs, lib, inputs, system, ... }:
let let
unstablePackages = inputs.nixpkgs-nixos-unstable.legacyPackages."${system}";
nil = inputs.nil.packages."${system}".default; nil = inputs.nil.packages."${system}".default;
cocPackage = cocPackage = unstablePackages.vimPlugins.coc-nvim;
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".vimPlugins.coc-nvim; nvimPackage = unstablePackages.neovim-unwrapped;
in { in {
home.file.".vimrc".source = ../../../.vimrc; home.file.".vimrc".source = ../../../.vimrc;
home.packages = with pkgs; [ ripgrep ]; home.packages = with pkgs; [ ripgrep ];
programs.neovim = { programs.neovim = {
enable = true; enable = true;
package = package = nvimPackage;
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".neovim-unwrapped;
coc = { coc = {
enable = true; enable = true;
package = cocPackage; package = cocPackage;