fix(nvim): use unstable pkgset #105

Merged
jalil merged 1 commit from nixvim-use-unstable into main 2024-10-14 09:35:30 +02:00
6 changed files with 40 additions and 21 deletions

View file

@ -2,10 +2,17 @@
{
flake.nixosModules =
let
nvim-config.imports = [
inputs.nixvim.homeManagerModules.nixvim
../nvim
];
nvim-config =
{ pkgs, ... }:
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
(import ../nvim {
inherit (inputs) unstable;
inherit (pkgs) system;
})
];
};
homeManagerModuleSandalone = import ../home {
inherit nvim-config;
inherit (inputs) stylix;

View file

@ -9,7 +9,11 @@
nixvim = inputs.nixvim.legacyPackages.${system};
module = {
inherit pkgs;
module = ../nvim/standalone.nix;
extraSpecialArgs = {
inherit (inputs) unstable;
inherit system;
};
module = import ../nvim/standalone.nix { standalone = true; };
};
in
{

View file

@ -17,8 +17,6 @@
inherit (unstablePkgs)
gitoxide
jujutsu
neovim-unwrapped
ruff # nixpkgs stable version is improperly configured by nixvim
# wezterm
;
};

View file

@ -1,3 +1,4 @@
{ system, unstable }:
{ lib, config, ... }:
let
cfg = config.jhome.nvim;
@ -6,8 +7,9 @@ in
imports = [ ./options.nix ];
config.programs.nixvim = lib.mkMerge [
./standalone.nix
(import ./standalone.nix { standalone = false; })
(lib.mkIf cfg.enable {
nixpkgs = lib.mkForce { pkgs = import unstable { inherit system; }; };
enable = true;
defaultEditor = lib.mkDefault true;
})

View file

@ -183,7 +183,7 @@ in
servers = {
bashls = {
enable = true;
package = pkgs.unstable.bash-language-server;
package = pkgs.bash-language-server;
};
# clangd.enable = true; # Adds ~2GiB
# html.enable = true; # Not writing html

View file

@ -1,4 +1,11 @@
{ pkgs, ... }:
{ standalone }:
{
pkgs,
system,
unstable,
lib,
...
}:
{
imports = [
./options.nix
@ -8,6 +15,7 @@
];
config = {
nixpkgs = lib.optionalAttrs standalone { pkgs = import unstable { inherit system; }; };
globals.mapleader = " ";
# Appearance
colorschemes.gruvbox = {
@ -42,8 +50,8 @@
};
extraPlugins =
let
plugins = pkgs.unstable.vimPlugins;
extraPlugins = import ./extraPlugins { pkgs = pkgs.unstable; };
plugins = pkgs.vimPlugins;
extraPlugins = import ./extraPlugins { inherit pkgs; };
in
[
plugins.nui-nvim
@ -53,15 +61,15 @@
];
# Formatting & linters
extraPackages = [
pkgs.unstable.luajitPackages.jsregexp
pkgs.unstable.shfmt
pkgs.unstable.silicon
pkgs.unstable.statix
pkgs.unstable.stylua
pkgs.unstable.taplo
pkgs.unstable.typos
pkgs.unstable.yamlfmt
(pkgs.unstable.python3.withPackages (p: [ p.jupytext ]))
pkgs.luajitPackages.jsregexp
pkgs.shfmt
pkgs.silicon
pkgs.statix
pkgs.stylua
pkgs.taplo
pkgs.typos
pkgs.yamlfmt
(pkgs.python3.withPackages (p: [ p.jupytext ]))
];
extraConfigLuaPre =
# lua