den icon indicating copy to clipboard operation
den copied to clipboard

Default Systems to flakeExposed?

Open theutz opened this issue 6 months ago • 3 comments

@sini I just started a new project and was somewhat surprised to find that the systems were defaulting to all of the flake exposed systems. It felt like strange default behavior, and I wanted to see what you thought about it.

https://github.com/denful/den/blob/30ebfdc1b6b3e02f668b2559c0af75cbd1cfe086/modules/outputs/systems.nix#L14

theutz avatar May 30 '26 15:05 theutz

It feels right to me... why wouldn't that be the behavior?

sini avatar May 30 '26 20:05 sini

I think it's suprising because the default behavior for flake.parts is to have an empty array. So, if you're using flake parts, you end up with a bunch of systems when you run nix flake show, and to reduce the number of systems, you have to adjust den.systems.

However, inasmuch as flake.parts is not a dependency of den, but is just a library we work very nicely with, I think having a different default value for den could be ok. I'll leave this issue open until one of you (@vic @sini @drupol) has the courage to close it. 😉 I'm fine either way!

theutz avatar May 31 '26 09:05 theutz

Fine. I'll close it. :)

theutz avatar Jun 03 '26 03:06 theutz