diff --git a/README.md b/README.md index 180838c..2af2d7a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Harmonic is an opinionated, experimental Nix installer. ## Status -Harmonic is **pre-release and experimental**. It is not ready for you to use! *Please* don't use it on a machine you are not planning to oblierate! +Harmonic is **pre-release and experimental**. It is not ready for you to use! *Please* don't use it on a machine you are not planning to obliterate! Planned support: @@ -54,7 +54,7 @@ Then copy the `result/bin/harmonic` to the machine you wish to run it on. ## Running -Harmonic must be run as `root` or via `sudo`, as it needs to alter the system and cannot elevate privileges without significant complexity. +Harmonic must be run as `root`, as it needs to alter the system and cannot elevate privileges without significant complexity. Install Nix with default options: @@ -62,6 +62,6 @@ Install Nix with default options: ./harmonic ``` -To observe verbose logging, either use `harmonic -V`, for extremely verbose trace logging use `RUST_LOG=harmonic=trace harmonic`. +To observe verbose logging, either use `harmonic -v`, this tool [also respects the `RUST_LOG` environment](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives). (Eg `RUST_LOG=harmonic=trace harmonic`). Harmonic supports many of the options the current official Nix installer scripts. Review `harmonic --help` for details. \ No newline at end of file diff --git a/flake.nix b/flake.nix index 470cc93..b10e86d 100644 --- a/flake.nix +++ b/flake.nix @@ -123,6 +123,7 @@ rec { harmonic = naerskLib.buildPackage (sharedAttrs // { }); + default = self.packages.${system}.harmonic; } // lib.optionalAttrs (system == "x86_64-linux") rec { default = harmonicStatic; harmonicStatic = naerskLib.buildPackage @@ -140,7 +141,5 @@ OPENSSL_INCLUDE_DIR = "${pkgs.pkgsStatic.openssl.dev}"; }); }); - - defaultPackage = forAllSystems ({ system, ... }: self.packages.${system}.harmonic); }; }