Skip to content

Conversation

kumavis
Copy link

@kumavis kumavis commented Oct 17, 2025

Added a config for running this server as a nix package or nixOS service.

Since nix packages are built by the consumer, we don't need to publish a build, this git repo suffices 🎉

Because nix packages are strict about determinism, we need to keep the package-lock.json and nix-deps-hash.nix in sync. In order to make this easy to maintain, there is:

  • concise developer documentation in the README.md
  • a workflow to ensure the hash stays in sync
  • for users with nix, theres a nix:deps script in package.json to update the hash (I tried to make it work without nix but was not practical)
  • for users without nix, there is a workflow that will report the expected value

@kumavis
Copy link
Author

kumavis commented Oct 17, 2025

Here is an example of the deps-hash-check workflow failing, with clear instructions on how to fix

@kumavis kumavis marked this pull request as draft October 17, 2025 03:35
@kumavis
Copy link
Author

kumavis commented Oct 17, 2025

moved to draft because i might adjust the flake config

@kumavis kumavis marked this pull request as ready for review October 17, 2025 08:59
@kumavis
Copy link
Author

kumavis commented Oct 17, 2025

verified working as both a package and a module with a service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant