https://github.com/aarnphm/detachtools
dotfiles + nix = dix
https://github.com/aarnphm/detachtools
Last synced: 11 months ago
JSON representation
dotfiles + nix = dix
- Host: GitHub
- URL: https://github.com/aarnphm/detachtools
- Owner: aarnphm
- License: apache-2.0
- Created: 2021-12-20T20:40:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-13T00:24:53.000Z (12 months ago)
- Last Synced: 2025-06-13T01:30:32.771Z (12 months ago)
- Language: Nix
- Homepage:
- Size: 2.96 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.md
- License: LICENSE
Awesome Lists containing this project
README
# detachtools
Setting up environment shouldn't be this hard
## installations.
```bash
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
nix run github:aarnphm/detachtools#bootstrap -- darwin # or ubuntu
nix run github:aarnphm/detachtools#lambda -- --help # Run CLI to interact with Lambda Cloud
```
Stack:
- atuin to manage shell history
- gh + git + eza
- fzf + zsh + rg + neovim + fd + nix to manage setup across multiple systems.
## bootstrap.
bootstrap is a helper to run a few tools on setup or rebuild based on Linux/Darwin. It is a wrapper around nix-darwin/home-manager functionality, albeit it behaves somewhat the same with a few additional flags/optimization.
Ofc you can just run `nix run home-manager` or `nix run nix-darwin/master#darwin-rebuild`, but I'm lazy...
```bash
nix run github:aarnphm/detachtools#bootstrap -- --flake ~/workspace/detachtools # or any flake uri
```
## notes.
I also include some standalone tools that can be installed, such as `lambda`.
Some packages include certain override:
- `gvim`: This will add support for remote via `--address`. More information with `gvim -h`
- to add a new derivation, uses `nix run github:nix-community/nix-init -- -u -n ./overlays`
- to run update, uses `nix run github:Mic92/nix-update`
On MacOS, to add support to Ghostty, we have to build in impure mode for now
### lambda.
If you don't use Nix or only need the `lambda` tool, you can install it directly:
```bash
curl -sSfL https://raw.githubusercontent.com/aarnphm/detachtools/main/install.sh | bash
```
This will default to check whether `nix` is available on your system, and thus recommends the default `nix` way to install this binary.
However, if you wish to bypass this check, do the following:
```bash
curl -sSfL https://raw.githubusercontent.com/aarnphm/detachtools/main/install.sh | bash -s -- --force-install
```