docs: update readme

This commit is contained in:
Guanran Wang 2023-12-29 23:34:58 +08:00
parent 671a81a366
commit 79bd9997a5
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -1,27 +1,16 @@
# nix{os,-darwin} config # nix{os,-darwin} config
It just works™ It just works™
## Infomation
- Flakes: Yes
- Home Manager: Yes
### Machine-specific (Aristotle)
- File system: Btrfs
- System encryption: Yes (LUKS)
### User-specific (me)
- Secrets: sops-nix
- Display server: Wayland
- Desktop-environment: Sway
## Structure ## Structure
``` ```
 .  .
│ ### System configuration │ ### System configuration
│ # Darwin configuration is not actively maintained and sometimes it might break.
├──  darwin ├──  darwin
├──  nixos ├──  nixos
│ ├──  hardware │ ├──  hosts
│ ├──  modules │ ├──  modules
│ └──  profiles │ └──  profiles
@ -38,17 +27,19 @@ It just works™
└──  README.md └──  README.md
``` ```
## Installation: ## Installation:
~~Please don't.~~ Please don't.
1. ### NixOS:
Clone this repository
`$ git clone https://github.com/Guanran928/flake.git`
2. 1. Clone this repository
Add your device's hardware configuration in `./ (nixos/darwin) /hardware` and `./flake.nix`
3. `$ git clone https://github.com/Guanran928/flake.git`
Install NixOS
`$ nixos-install --flake <this flake's directory>#<hostname>` 2. Add your device's hardware configuration in `./flake.nix` and `./nixos/hosts/<hostname>`
3. Install NixOS
`$ nixos-install --flake <this flake's directory>#<hostname>`