mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-08-23 02:10:20 +02:00
feat: debug
This commit is contained in:
@@ -62,7 +62,7 @@ In this configuration, we declare our intention to enable the openssh service, a
|
||||
|
||||
To deploy the modified configuration, run `sudo nixos-rebuild switch`. This command will apply the changes, generate a new system environment, and set it as the default. You can now log in to the system using SSH with the configured SSH keys.
|
||||
|
||||
> You can always try to add `--show-trace -L` to the `nixos-rebuild` command to get the detailed error message if you encounter any errors during the deployment.
|
||||
> You can always try to add `--show-trace --print-build-logs --verbose` to the `nixos-rebuild` command to get the detailed error message if you encounter any errors during the deployment.
|
||||
|
||||
Remember that any reproducible changes to the system can be made by modifying the `/etc/nixos/configuration.nix` file and deploying the changes with `sudo nixos-rebuild switch`.
|
||||
|
||||
|
@@ -403,8 +403,6 @@ Make the necessary changes and deploy with `sudo nixos-rebuild switch`. The depl
|
||||
|
||||
After deployment, you can directly test and verify the installation using the `hx` command in the terminal.
|
||||
|
||||
> If you encounter any errors during deployment, you can try adding the `--show-trace -L` parameters to the `nixos-rebuild` command to get detailed error information.
|
||||
|
||||
Additionally, if you just want to try out the latest version of Helix and decide whether to install it on your system later, there is a simpler way to do it in one command (but as mentioned earlier, compiling from source will take a long time):
|
||||
|
||||
```bash
|
||||
|
@@ -2,11 +2,14 @@
|
||||
|
||||
## Show detailed error messages
|
||||
|
||||
You can always try to add `--show-trace -L` to the `nixos-rebuild` command to get the detailed error message if you encounter any errors during the deployment. e.g.
|
||||
You can always try to add `--show-trace --print-build-logs --verbose` to the `nixos-rebuild` command to get the detailed error message if you encounter any errors during the deployment. e.g.
|
||||
|
||||
```bash
|
||||
cd /etc/nixos
|
||||
sudo nixos-rebuild switch --flake .#myhost --show-trace -L
|
||||
sudo nixos-rebuild switch --flake .#myhost --show-trace --print-build-logs --verbose
|
||||
|
||||
# A more concise version
|
||||
sudo nixos-rebuild switch --flake .#myhost --show-trace -L -v
|
||||
```
|
||||
|
||||
## Managing the Configuration with Git
|
||||
|
Reference in New Issue
Block a user