-
I wanted to ask, I added the flake to my system config flake, but when I rebuild I don't see the overlay of the rustowl package? Is it under something else? |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments
-
Adding the overlay isn't enough. You need to add the package to your |
Beta Was this translation helpful? Give feedback.
-
Hmm, thats weird, I'm trying to add it in home manager's packages which isn't env.systempackages but it should be the same right? neovim = {
enable = true;
defaultEditor = true;
extraPackages = with pkgs; [
# programs
git
lemonade
ripgrep
wl-clipboard
xclip
# runtimes
nodejs
python3
# ...
# rust
rustup
rust-analyzer
vscode-extensions.vadimcn.vscode-lldb
rustowl
];
}; |
Beta Was this translation helpful? Give feedback.
-
Ah, the |
Beta Was this translation helpful? Give feedback.
-
wtf error: undefined variable 'cargo-owlsp'
at /nix/store/kn1hd8ip4l1pj73z7caw5bwxmbw6cwnr-source/common/system/home-manager.nix:103:13:
102| vscode-extensions.vadimcn.vscode-lldb
103| cargo-owlsp
| ^
104| |
Beta Was this translation helpful? Give feedback.
-
The atrribute is called |
Beta Was this translation helpful? Give feedback.
-
I still get the same error if I add |
Beta Was this translation helpful? Give feedback.
-
It probably means the overlay is added after your home-manager module is evaluated. |
Beta Was this translation helpful? Give feedback.
-
Thats interesting, I wouldn't have thought of that. What would you suggest? |
Beta Was this translation helpful? Give feedback.
-
You could try adding the a nixos module like this, before the hm module: modules = [
({...}: {
nixpkgs.overlays = [
inputs.rustowl-flake.overlays.default
];
})
inputs.home-manager.nixosModules.default
] I'm not sure if that will work, though. NixOS module evaluation can be finicky. |
Beta Was this translation helpful? Give feedback.
-
Where do I put this? Before the import of the home manager module? |
Beta Was this translation helpful? Give feedback.
-
This is the exact option |
Beta Was this translation helpful? Give feedback.
-
Somewhere in your config you have to be importing the home-manager module. |
Beta Was this translation helpful? Give feedback.
-
I got the overlay to work, but it looks like the inputs are not inherited error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "fenix" at /nix/store/v4ikaz912as7fzfyf8mijrxjzg5aql3s-source/nix/package.nix:4, did you mean "felix", "febio" or "fend"?' |
Beta Was this translation helpful? Give feedback.
-
I got it to work, however the problem is I have to add fenix as well nixpkgs.overlays = [
inputs.rustowl.overlays.default
inputs.fenix.overlays.default
]; I think... it works, but the next step is to get it to work with neovim. |
Beta Was this translation helpful? Give feedback.
I got it to work, however the problem is I have to add fenix as well
I think... it works, but the next step is to get it to work with neovim.