1
Fork 0
mirror of https://github.com/RGBCube/crash synced 2025-07-27 08:27:44 +00:00

Add Installation without Nix section

This commit is contained in:
RGBCube 2024-05-16 12:44:55 +03:00
parent 6741fe87ce
commit 14b390a1c5
No known key found for this signature in database

View file

@ -69,6 +69,25 @@ shell like so, in a NixOS module:
} }
``` ```
## Installation without Nix
First, you have to compile the program (requires Zig 0.12.0):
```shell
zig build --release=safe -Dcpu=baseline -Dfallback_shell=/bin/<yourshell>
```
After that, the binary should be in `zig-out/bin/crash`. You can copy it to
`/bin` like so:
```shell
cp zig-out/bin/crash /bin/
```
After that, you will need to edit PAM settings to set the `SHELLS` environment
variable early on in the boot process. Consult your distros documentation on
how to do this, as it may vary.
## Tips & Tricks ## Tips & Tricks
You can control the default shell / program that will get launched You can control the default shell / program that will get launched