42 lines
817 B
Markdown
42 lines
817 B
Markdown
# nix{os,-darwin} config
|
|
|
|
It just works™
|
|
|
|
## Structure
|
|
|
|
Any directory or file that is prefixed with an `_` (underscore) means that the
|
|
whole directory/file is unused in this repository.
|
|
|
|
```
|
|
.
|
|
│ # Darwin configuration is not actively maintained and sometimes it might
|
|
│ # break.
|
|
├── home
|
|
├── darwin
|
|
├── nixos
|
|
│ ├── modules
|
|
│ └── profiles
|
|
│
|
|
├── hosts
|
|
├── flake.nix
|
|
├── flake.lock
|
|
│
|
|
└── README.md
|
|
```
|
|
|
|
## Installation:
|
|
|
|
Please don't.
|
|
|
|
### NixOS:
|
|
|
|
1. Clone this repository
|
|
|
|
`$ git clone https://github.com/Guanran928/flake.git`
|
|
|
|
2. Add your device's hardware configuration in `./flake.nix` and
|
|
`./hosts/<hostname>`
|
|
|
|
3. Install NixOS
|
|
|
|
`$ nixos-install --flake <this flake's directory>#<hostname>`
|