nix-managed-macbook/README.md

36 lines
711 B
Markdown
Raw Normal View History

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
First install [Nix]. Then, in the repo directory, run `nix develop` to get into the Nix shell.
To set up the MacBook as per the config, run:
2022-09-27 21:31:14 +05:30
```bash
just switch
2022-09-27 21:31:14 +05:30
```
To update installed packages, run:
```bash
just update
```
To clean up garbage, run:
```bash
just clean
2022-09-27 21:31:14 +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
just <repo_dir>/switch # or update or clean
2022-09-27 21:31:14 +05:30
```
[Nix]: https://nixos.org
[Home Manager]: https://github.com/nix-community/home-manager
[`just`]: https://just.systems