Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arch-fan/hacking-env
A declarative hacking environment you can run with Docker.
https://github.com/arch-fan/hacking-env
Last synced: 9 days ago
JSON representation
A declarative hacking environment you can run with Docker.
- Host: GitHub
- URL: https://github.com/arch-fan/hacking-env
- Owner: arch-fan
- Created: 2024-12-04T19:52:46.000Z (22 days ago)
- Default Branch: main
- Last Pushed: 2024-12-04T20:05:42.000Z (22 days ago)
- Last Synced: 2024-12-04T21:19:57.826Z (22 days ago)
- Language: Nix
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hacking environment (Nix)
![image](https://github.com/user-attachments/assets/c8f33e88-2e57-4cb9-828b-41af0739fa44)
> [!CAUTION]
> Make sure you have configured the `flake.nix` with your system type!
> Available systems are: `"x86_64-linux"`, `"aarch64-linux"`, `"x86_64-darwin"`, `"aarch64-darwin"`.
> Change this line in the `flake.nix` file for having all right:
>
> ```nix
> let system = "x86_64-linux"
> ```This hacking environment has been built with Nix store, so you can easily work with the declarative configuration it offers. If you want to set up your own configuration, just use these repo and modify the `home.nix` file.
## Running the environment
The main purpose of the `flake.nix` is to run with Docker. You can just run the following command
```bash
chmod +x ./run.sh && ./run.sh
```
Or just the commands inside the script
```bash
docker compose up -d --build && docker attach hacknix
```
If you want to dettach from container, just make the combination `Ctrl+P` & `Ctrl+Q` and for attaching, the previous `docker attach hacknix` command.## Modifying the environment
You can just modify the `home.nix` file if you know a bit about Nix and Nix Declarative Language. You can search for packages in https://search.nixos.org/packages