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

Exposing nix.generateRegistryFromInputs and nix.generateNixPathFromInputs #75

Open
Centri3 opened this issue May 5, 2024 · 6 comments

Comments

@Centri3
Copy link

Centri3 commented May 5, 2024

Hey, snowfall uses flake-utils-plus internally. I love snowfall, but I quite like also having no channels as I've already had hyprland break once for no reason when rebuilding since it pulled the wrong version from my channel. Can these options (including nix.linkInputs) be exposed in snowfall too? I already made my own module that does the same in my system but I think having it in snowfall would be a better option

Snowfall doesn't actually need to do anything special, just needs to set these options depending on what the user sets in mkFlake

@jakehamilton
Copy link
Member

Heya!

I'm not sure what you mean by having no channels. Do you not use NixPkgs?

As for the flake-utils-plus module options, these are available when using Snowfall Lib. You can set them in your system configuration the same way you would if you were using flake-utils-plus 👍

@olifloof

This comment was marked as off-topic.

@olifloof

This comment was marked as off-topic.

@Centri3
Copy link
Author

Centri3 commented May 28, 2024

I'm not sure what you mean by having no channels. Do you not use NixPkgs?

I'm not sure what you mean? I use nixpkgs, yeah, I'm referring to nix channels (what nix-channel adds to)

As for the flake-utils-plus module options, these are available when using Snowfall Lib. You can set them in your system configuration the same way you would if you were using flake-utils-plus 👍

Can you give a code snippet? I tried everything I could think of but nothing worked 🤔

@olifloof
Copy link

Can you give a code snippet?

this is what i have in my config, and it appears to work as expected: link

@Centri3
Copy link
Author

Centri3 commented May 29, 2024

Hmm I see! I was trying to put it in snowfall's mkFlake so I see why that wasn't working. I'll try that once I get the chance! I feel like this could be documented somewhere that this (and other flake-utils-plus options) work(s), since appending to nix outside of mkFlake was not the first thing I thought of

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

3 participants