2022-09-27 21:31:14 +05:30
|
|
|
# Nix + Home Manager based MacBook configuration
|
|
|
|
|
|
|
|
This is the [Nix] and [Home Manager] configuration for managing my MacBook.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-01-31 16:00:03 +05:30
|
|
|
First install [Nix] and [Homebrew]. Then, in the repo directory, run `nix develop` to get into the Nix shell.
|
2022-10-01 12:13:38 +05:30
|
|
|
|
|
|
|
To set up the MacBook as per the config, run:
|
2022-09-27 21:31:14 +05:30
|
|
|
|
|
|
|
```bash
|
2022-10-01 12:13:38 +05:30
|
|
|
just switch
|
2022-09-27 21:31:14 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
To update installed packages, run:
|
|
|
|
|
|
|
|
```bash
|
2022-10-01 12:13:38 +05:30
|
|
|
just update
|
|
|
|
```
|
|
|
|
|
|
|
|
To clean up garbage, run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
just clean
|
2022-09-27 21:31:14 +05:30
|
|
|
```
|
|
|
|
|
2022-10-01 12:13:38 +05:30
|
|
|
If you have [`just`] installed, you can also run these commands from any other directory, without starting Nix shell:
|
2022-09-27 21:31:14 +05:30
|
|
|
|
|
|
|
```bash
|
2022-10-01 12:13:38 +05:30
|
|
|
just <repo_dir>/switch # or update or clean
|
2022-09-27 21:31:14 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
[Nix]: https://nixos.org
|
2024-01-31 16:00:03 +05:30
|
|
|
[Homebrew]: https://brew.sh
|
2022-09-27 21:31:14 +05:30
|
|
|
[Home Manager]: https://github.com/nix-community/home-manager
|
2022-10-01 12:13:38 +05:30
|
|
|
[`just`]: https://just.systems
|