instantOS / instantNIX

instantOS tools packaged for the Nix package manager (and NixOS)
MIT License
32 stars 7 forks source link

Add `flake.lock`, add other instantNIX packages to `packages`, and format #33

Closed ShamrockLee closed 1 year ago

ShamrockLee commented 1 year ago

Description

This PR:

Having the flake.lock inside the Git tree helps marking the revisions known to work for this project. Home Manager people add it back to their project some years ago. Sorry for my previous comment to ignore it.

Ignoring flake.lock also caused error when using this flake as an input of another flake locally. Users were forced to use the path: scheme instead of the git+file scheme to avoid error. This patch solves these issues.

The flake.lock should be updated either automatically (via GitHub Actions or bots that creates PRs) or manually (via manual PR). We don't have to make the decision and implementation right now; we are tracking Nixpkgs 21.11, which is unlikely to change due to EOL.

We only had the packgaes.default flake attribute pointing toward the instantnix package, the symlink pack of all the other packages. This patch includes all the packages inside default.nix into the packages attribute, so that users can access them separately instead of having to use the instantnix pack.