Replies: 5 comments
-
Hi, instructions on how to consume a standalone package is detailed in the relevant section of the manual. If you have any specific questions, I can try to answer them but it boils down to (1) exposing the package and (2) consuming it from your flake via |
Beta Was this translation helpful? Give feedback.
-
Thanks! customNeovim.neovim in the manual uses nvf.lib.neovimConfiguration, so im unsure how to reproduce this step from a standalone flake inside of my system config flake. Im sorry if my explanation of what I want isn't the clearest. |
Beta Was this translation helpful? Give feedback.
-
You can acquire the package from another flake as long as said flake exposes your wrapped neovim configuraton as a package that you can consume. That would mean flake A, using nvf, builds your neovim setup and exposes it under, lets say, packages.x86_64-linux.neovim and then you can add flake A to flake B's inputs and get it as I cannot provide a complete example right now, but I'll see if I my network allows a git push tomorrow if you are still stuck. |
Beta Was this translation helpful? Give feedback.
-
Thanks a ton! I will try to get it to work today (and post if I manage to solve it). |
Beta Was this translation helpful? Give feedback.
-
I've managed to get it to work (atleast on my laptop)! I will post my solution here, please let me know if the way I've done it is suboptimal:
Ive left the system out from my-nvf since i have arm machines as well. Thanks once again Edit: After taking a closer look, i see how much i had overcomplicated the inputs lol. I just added this to my home.nix and it works:
|
Beta Was this translation helpful? Give feedback.
-
🏷️ Feature Type
Other
🔖 Feature description
Hey!
Im still not fully comfortable with nix, so excuse my ignorance, but is I have a standalone flake on Github, that i would like to use permanently inside of my system (preferably through home-manager). Is it possible to add it as some input into the home-manager?
Currently i have to run the "nix run" command to use my editor, and it would be nice to not have to maintain two configurations (one local and one flake)
✔️ Solution
❓ Alternatives
📝 Additional Context
I didn't find any better place for asking the question. Sorry.
Beta Was this translation helpful? Give feedback.
All reactions