-
|
Hello, I am able to run the example flake, but can't figure out how to integrate it into an existing setup with home manager. My config is esentially this template with slight changes: https://github.com/dustinlyons/nixos-config/tree/main/templates/starter The way I understand it, I'd need to
Is that the case?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
|
Anywhere you can call it with the correct arguments will work. Compare the useages of that function in the example template with the other ones below it: nixCats-nvim/templates/example/flake.nix Lines 471 to 477 in 16ac328 nixCats-nvim/templates/example/flake.nix Line 491 in 16ac328 This one shows returning the same outputs, but as a function you can call instead of being an entire flake: nixCats-nvim/templates/nixExpressionFlakeOutputs/default.nix Lines 142 to 145 in 16ac328 make one of the packages (you can make the others using it later) nixCats-nvim/templates/flakeless/default.nix Line 121 in 16ac328 Hopefully, seeing how each of these templates works the same way, you provide the same arguments, and call it to receive a package which can be used to build all of the ones in packageDefinitions if desired, you are able to adapt the example template to be callable within your config directly without it being a separate flake! The special "name the input In addition, you could use the module instead, but the module for nixCats simply wraps the normal function, and it changes a few of the options slightly, this is honestly probably easier to follow. If it is not enough, you can ask more questions here about it. BTW questions in the future that you don't think are bugs should go in the discussions page, but otherwise, yes github is a fine place to ask. |
Beta Was this translation helpful? Give feedback.
So, that is fetching it directly, you fetched it with builtins.fetchGit. This is fine, it works, although you will have to update that rev manually when nixCats updates. nixCats was designed to work regardless of if you import it as a flake or not, which is why this works.
If you decide to swap to using flakes eventually, you can grab nixCats from your flake inputs, thats what that
inherit (inputs) nixCatsis, I, possibly incorrectly, assumed that you were using flakes, and had a flake input with nixCats in it.