Fix configuration issues #256

Merged
jalil merged 3 commits from push-mtvkqlnskqqq into main 2025-01-18 12:09:12 +01:00
5 changed files with 15 additions and 33 deletions

View file

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

View file

@ -3,20 +3,19 @@
flake.overlays.nixvim = inputs.nixvim.overlays.default; flake.overlays.nixvim = inputs.nixvim.overlays.default;
perSystem = perSystem =
{ pkgs, system, ... }: { lib, system, ... }:
let let
nixvimLib = inputs.nixvim.lib.${system}; nixvimLib = inputs.nixvim.lib.${system};
nixvim = inputs.nixvim.legacyPackages.${system}; nixvim = inputs.nixvim.legacyPackages.${system};
testNvimModule = nixvimLib.check.mkTestDerivationFromNixvimModule; testNvimModule = nixvimLib.check.mkTestDerivationFromNixvimModule;
nvimModule = extraConfig: { nvimModule = extraConfig: {
inherit pkgs; pkgs = inputs.unstable.legacyPackages.${system};
extraSpecialArgs = {
inherit (inputs) unstable;
inherit system;
};
module = { module = {
imports = [ (import ../nvim/standalone.nix { standalone = true; }) ]; imports = [ ../nvim/standalone.nix ];
config = extraConfig; config = lib.mkMerge [
{ performance.combinePlugins.enable = true; }
extraConfig
];
}; };
}; };
moduleDev = nvimModule { }; moduleDev = nvimModule { };

View file

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

View file

@ -15,7 +15,6 @@ let
# "html" # Not writing html # "html" # Not writing html
"jsonls" "jsonls"
"marksman" "marksman"
"nixd"
"ruff" "ruff"
"taplo" "taplo"
# "texlab" # Not using it # "texlab" # Not using it

View file

@ -1,11 +1,4 @@
{ standalone }: { pkgs, ... }:
{
pkgs,
system,
unstable,
lib,
...
}:
{ {
imports = [ imports = [
./options.nix ./options.nix
@ -17,7 +10,6 @@
config = { config = {
withRuby = false; withRuby = false;
nixpkgs = lib.optionalAttrs standalone { pkgs = unstable.legacyPackages.${system}; };
globals.mapleader = " "; globals.mapleader = " ";
# Appearance # Appearance
colorschemes.gruvbox = { colorschemes.gruvbox = {
@ -50,7 +42,6 @@
# Enable local configuration :h 'exrc' # Enable local configuration :h 'exrc'
exrc = true; # safe since nvim 0.9 exrc = true; # safe since nvim 0.9
}; };
performance.combinePlugins.enable = true;
extraPlugins = extraPlugins =
let let
plugins = pkgs.vimPlugins; plugins = pkgs.vimPlugins;