flake/README.md

55 lines
1.1 KiB
Markdown
Raw Normal View History

2023-09-19 00:17:43 +00:00
# nix{os,-darwin} config
2023-10-31 09:19:51 +00:00
It just works™
2023-09-19 00:17:43 +00:00
2023-10-31 09:19:51 +00:00
## Infomation
- Flakes: Yes
- Home Manager: Yes
2023-11-17 05:38:25 +00:00
### Machine-specific (Aristotle)
2023-10-31 09:19:51 +00:00
- File system: Btrfs
- System encryption: Yes (LUKS)
2023-11-03 15:04:38 +00:00
### User-specific (me)
2023-10-31 09:19:51 +00:00
- Secrets: sops-nix
- Display server: Wayland
- Desktop-environment: Sway
## Structure
```
 .
2023-11-17 05:38:25 +00:00
│ ### System configuration
├──  darwin
2023-10-31 09:19:51 +00:00
├──  nixos
2023-11-17 05:38:25 +00:00
│ ├──  hardware
│ ├──  modules
│ └──  profiles
2023-10-31 09:19:51 +00:00
2023-11-17 05:38:25 +00:00
│ ### User configuration
│ # Adds user account, home-manager stuff, etc.
│ # Do whatever you want here.
2023-10-31 09:19:51 +00:00
├──  users
2023-11-17 05:38:25 +00:00
│ ├──  guanranwang
│ ├──  foo
│ └──  bar
2023-10-31 09:19:51 +00:00
├──  flake.nix
├──  flake.lock
└──  README.md
```
## Installation:
~~Please don't.~~
1.
Clone this repository
`$ git clone https://github.com/Guanran928/flake.git`
2.
2023-11-17 05:38:25 +00:00
Add your device's hardware configuration in `./ (nixos/darwin) /hardware` and `./flake.nix`
2023-10-31 09:19:51 +00:00
3.
Install NixOS
`$ nixos-install --flake <this flake's directory>#<hostname>`