Skip to content

Commit d7a3d3f

Browse files
committed
main
1 parent 4cec095 commit d7a3d3f

File tree

2 files changed

+3
-80
lines changed

2 files changed

+3
-80
lines changed

docs/document/Articles/docs/Neovim.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

docs/document/Articles/docs/Setup nix-on-droid.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@
2323
> [!NOTE]
2424
> You can wrap the same as bash function by `awk` or other text manipulation tools.
2525
26-
2726
## Init
2827
2928
- nix-on-droid may ask for url for certain file, if the url is not accessible on your phone, download it and transfer to your phone. And replace the default url as `file:///sdcard/...`
3029
- type `yes` when nix prompt for downloads for first init.
3130
- add and update channels:
3231
```sh
33-
nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager && channel
32+
nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager && nix-channel --update
3433
```
3534
> [!TIP]
3635
> If you use the wrapper function mentioned above, would be like this:
@@ -67,14 +66,14 @@ mkdir -p ~/.ssh/ && touch ~/.ssh/authorized_keys && echo <pub> >> ~/.ssh/authori
6766
- start ssh daemon by `sshd`
6867

6968
```sh
70-
sshd -p <port> -h <host_key> -d
69+
$(which sshd) -p <port> -h <host_key> -d
7170
```
7271

7372
`-d` is essential to know whether your port is been taken or not. See details in `man sshd`.
7473

7574
- now connect to nix-on-droid from your computer
7675

77-
```ps1
76+
```sh
7877
ssh -l nix-on-droid -p <port> <ipaddr_of_phone>
7978
```
8079

0 commit comments

Comments
 (0)