"Flake Package"

This is a installable "flake" which rather than providing a usual packages.<system>.<package> output is in its entirety addable to environment.systemPackages

Installation is rather simple

Add this repo as a flake input

inputs.flake-package.url = "github:gerg-l/flake-package";

Pass your inputs to your modules

Then add inputs.flake-package to environment.systemPackages or users.users.<name>.packages

Rebuild, and you should be able to run flake-package from your shell

how

the flexible type check of lib.types.package here

why

because it's funny

TODO

use a multiarch statically compiled binary instead of a bash script