-
Notifications
You must be signed in to change notification settings - Fork 48
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
Improved flake support #129
Comments
Yes, this needs to be done. My thoughts so far: We should use a new top-level flake attribute though, because arion projects aren't packages, and shouldn't even be derivations. There's a parallel with Something like Arion modules can be imported at the project, service or NixOS level. The latter isn't arion-specific, so for reusable arion modules in flakes we only need I did think about putting the derivation in a flake attribute anyway, but I just don't think it's constant enough. It'd break |
Just a tip for anyone who stumbles across this: since
|
It seems that NixOS/nix#6530 may solve this. |
We might actually skip the |
I recently came across Arion and it's been fantastic. Thanks for making this package!
The only thing I've come across that's a bit awkward is the need to have arion-compose.nix and arion-pkgs.nix when using nixUnstable/flakes. Currently I have a dozen arion-{compose,pkgs}.nix scattered about that only contain a single line:
arion-pkgs.nix:
arion-compose.nix
Instead, it would be awesome if the following was possible:
This mimics the flake interface for
nixos-rebuild
,home-manager
, and other tools in the Nix ecosystem.Each flake.nix would look something like:
Now everything is fully contained in the flake.nix without having to have arion-{compose,pkgs}.nix and you could do cool things like:
I tried to implement this myself and got about halfway there, but I know nothing about Haskell lol. If someone could help on the Haskell side
I'd be happy to pitch in elsewhere.
The text was updated successfully, but these errors were encountered: