Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help to configure standalone installation #2969

Open
Felipe-9 opened this issue Feb 5, 2025 · 3 comments
Open

Help to configure standalone installation #2969

Felipe-9 opened this issue Feb 5, 2025 · 3 comments

Comments

@Felipe-9
Copy link

Felipe-9 commented Feb 5, 2025

Hello there, please i need help.

I am moving my neovim configuration from lua to nix and im having so many trouble to inclue the standalone in my nixos flake, i have been checking everywhere and still am having errors for which idk what to do.

my nixvim wrapper sits in my repo flake-neovim-nixvim

i have this file that is imported to my home manager: nixvim.nix

{ lib, config, pkgs, inputs, ...}: 
{
  imports = [
    # inputs.nixvim.homeManagerModules.nixvim
  ];

  options.nixvim-wrapped.enable = lib.mkEnableOption "Enable neovim wrapper module";

  config = lib.mkIf config.nixvim-wrapped.enable {
    home.packages = with pkgs;[
      inputs.nixvim-wrapped.packages.${pkgs.system}.default
      # inputs.Neve.packages."x86_64-linux".default
      # inputs.Neve.packages.${pkgs.system}.default
      # neovim
      # nixvim
    ];
    # programs.nixvim.enable = true;
    # programs.neovim.enable = true;
  };
}

from flake.nix these are my imports for nixvim:

...
nixvim-wrapped.url = "gitlab:Felipe-9/flake-neovim-nixvim";
...

what am i doing wrong???

@MattSturgeon
Copy link
Member

What error(s) are you seeing? I don't see any obvious issues with the module you've shared.

@Felipe-9
Copy link
Author

Felipe-9 commented Feb 5, 2025

Sorry, i expressed myself wrong, errors only appears if i take any of those comments out.
but as it is, it compiles ok, but when i open nvim on the terminal its the default instead of the one i configured

@Felipe-9 Felipe-9 closed this as completed Feb 5, 2025
@Felipe-9 Felipe-9 reopened this Feb 5, 2025
@Felipe-9
Copy link
Author

Felipe-9 commented Feb 5, 2025

when i tried to change my nixvim.nix commenting out the following lines:

...
inputs.nixvim.homeManagerModules.nixvim
...
programs.nixvim.enable = true;
...

and add nixvim flake url to my flake.nix

i get the following error

error: builder for '/nix/store/pn9z5blq1rf0a2i1xxd6vghhw5f43pgn-home-manager-path.drv' failed with exit code 25;
       last 1 log lines:
       > error: collision between `/nix/store/xx8kjv3p5n466kx4pgvgjmi71r2r6yga-nixvim/share/man/man5/nixvim.5.gz' and `/nix/store/48a4aag8c8h6f80pp493b9lk4d0m2blg-nixvim/share/man/man5/nixvim.5.gz'

also pls ignore that i set the issue as completed, it was a missclick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants