From 3405010508703dedaee67d9b80c499686a4139fd Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 9 Nov 2025 18:49:48 +0900 Subject: [PATCH] README: add note about nixos vm --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b667910..95dabda 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,16 @@ Preferrably, this UID/GID should not be root, in order to minimize the potential ## Development and testing +### Nix + +If you have nix installed, you can test your changes in a NixOS vm by running: + +```bash +nix run .#vm +``` + +### General setup + Ensure you have a [rust toolchain](https://www.rust-lang.org/tools/install) installed. In order to set up a test instance of mariadb in a docker container, run the following command: @@ -92,4 +102,4 @@ cargo build where the old program would just work by itself. - The order in which some things are validated (e.g. whether you own a user, whether the contains illegal characters, whether the user does or does not exist) might be different - from the original program, leading to the same command giving the errors in a different order. \ No newline at end of file + from the original program, leading to the same command giving the errors in a different order.