List of nixpkgs default systems

I know that I don’t need flake-utils, but I keep using it simply so I don’t have to manually list the systems that nixpkgs supports. Is there a function or variable provided by nixpkgs that will tell me this?

I know it’s not a big deal to write

systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];

but if, say, Raspberry Pi gets full support some day, I want my package to automatically be available for it.

Is lib.systems.flakeExposed what you want?

1 Like