docs/readme: add nix-on-droid, cleanup
This commit is contained in:
parent
1e82abceef
commit
d9925b5709
1 changed files with 24 additions and 3 deletions
27
README.md
27
README.md
|
@ -1,4 +1,4 @@
|
||||||
# nix{os,-darwin} config
|
# nix{os,-darwin,-on-droid} config
|
||||||
|
|
||||||
It just works™
|
It just works™
|
||||||
|
|
||||||
|
@ -11,13 +11,17 @@ whole directory/file is unused in this repository.
|
||||||
.
|
.
|
||||||
│ # Darwin configuration is not actively maintained and sometimes it might
|
│ # Darwin configuration is not actively maintained and sometimes it might
|
||||||
│ # break.
|
│ # break.
|
||||||
├── home
|
├── home # <-- See here for dotfiles!
|
||||||
├── darwin
|
├── darwin
|
||||||
├── nixos
|
├── nixos
|
||||||
│ ├── modules
|
│ ├── modules
|
||||||
│ └── profiles
|
│ └── profiles
|
||||||
│
|
│
|
||||||
|
│ # Personal packages, please see github:Guanran928/nur-packages instead
|
||||||
|
├── pkgs
|
||||||
├── hosts
|
├── hosts
|
||||||
|
├── overlays
|
||||||
|
│
|
||||||
├── flake.nix
|
├── flake.nix
|
||||||
├── flake.lock
|
├── flake.lock
|
||||||
│
|
│
|
||||||
|
@ -56,4 +60,21 @@ Please don't.
|
||||||
|
|
||||||
4. Install [`nix-darwin`](https://github.com/LnL7/nix-darwin?tab=readme-ov-file#flakes)
|
4. Install [`nix-darwin`](https://github.com/LnL7/nix-darwin?tab=readme-ov-file#flakes)
|
||||||
|
|
||||||
`$ nix run nix-darwin -- switch --flake <this flake's directory>#<hostname>`
|
`$ nix run nix-darwin -- --flake <this flake's directory>#<hostname> switch`
|
||||||
|
|
||||||
|
### Nix-On-Droid:
|
||||||
|
|
||||||
|
1. Install [`nix-on-droid`](https://github.com/nix-community/nix-on-droid) and bootstrap with Flakes
|
||||||
|
|
||||||
|
F-Droid: https://f-droid.org/packages/com.termux.nix
|
||||||
|
|
||||||
|
2. Clone this repository
|
||||||
|
|
||||||
|
`$ nix shell nixpkgs#git`
|
||||||
|
`$ git clone https://github.com/Guanran928/flake.git`
|
||||||
|
|
||||||
|
3. Add your device's configuration in `./flake.nix` and `./hosts/<hostname>`
|
||||||
|
|
||||||
|
4. Setup Nix-On-Droid
|
||||||
|
|
||||||
|
`$ nix-on-droid --flake <this flake's directory>#<hostname>switch`
|
||||||
|
|
Loading…
Reference in a new issue