2
2
3
3
** _ Install NixOS everywhere via ssh_ **
4
4
5
- <img src =" https://raw.githubusercontent.com/numtide /nixos-anywhere/main/docs/logo.png " width =" 150 " height =" 150 " >
5
+ <img src =" https://raw.githubusercontent.com/nix-community /nixos-anywhere/main/docs/logo.png " width =" 150 " height =" 150 " >
6
6
7
7
[ Documentation Index] ( ./INDEX.md )
8
8
@@ -25,7 +25,7 @@ You will need:
25
25
the privilege to either login directly as root or to use password-less sudo.
26
26
27
27
** nixos-anywhere** doesn’t need to be installed. You can run it directly from
28
- [ Numtide's repository on Github.] ( https://github.com/numtide /nixos-anywhere )
28
+ [ Numtide's repository on Github.] ( https://github.com/nix-community /nixos-anywhere )
29
29
30
30
Details of the flake, the disk configuration and the CLI command are discussed
31
31
below.
40
40
2 . ** Initialize a Flake** :
41
41
42
42
The easiest way to start is to copy our
43
- [ example flake.nix] ( https://github.com/numtide /nixos-anywhere-examples/blob/main/flake.nix )
43
+ [ example flake.nix] ( https://github.com/nix-community /nixos-anywhere-examples/blob/main/flake.nix )
44
44
into a new directory. This example is tailored for a virtual machine setup
45
45
similar to one on [ Hetzner Cloud] ( https://www.hetzner.com/cloud ) , so you
46
46
might need to adapt it for your setup.
68
68
69
69
3 . ** Find SSH Key Line** :\
70
70
if you cloned
71
- [ our nixos-anywhere-example] ( https://github.com/numtide /nixos-anywhere-examples/blob/main/configuration.nix )
71
+ [ our nixos-anywhere-example] ( https://github.com/nix-community /nixos-anywhere-examples/blob/main/configuration.nix )
72
72
you will also replace the SSH key like this: In your configuration, locate
73
73
the line that reads:
74
74
84
84
used to specify the disk layout to the ** disko** tool, which nixos-anywhere
85
85
uses to partition, format and mount the disks. Again, for a simple
86
86
installation you can paste the contents from the example
87
- [ here] ( https://github.com/numtide /nixos-anywhere-examples/blob/main/disk-config.nix ) .
87
+ [ here] ( https://github.com/nix-community /nixos-anywhere-examples/blob/main/disk-config.nix ) .
88
88
This configures a standard GPT (GUID Partition Table) partition compatible
89
89
with both EFI and BIOS systems, and mounts the disk as ` /dev/sda ` . If this
90
90
doesn’t meet your requirements, choose an example that suits your disk layout
@@ -117,10 +117,10 @@ below.
117
117
- ` <configuration name> ` must match the name that immediately follows the
118
118
text ` nixosConfigurations. ` in the flake, as indicated by the comment in
119
119
the
120
- [ example] ( https://github.com/numtide /nixos-anywhere-examples/blob/main/flake.nix ) ).
120
+ [ example] ( https://github.com/nix-community /nixos-anywhere-examples/blob/main/flake.nix ) ).
121
121
122
122
```
123
- nix run github:numtide /nixos-anywhere -- --flake <path to configuration>#<configuration name> --vm-test
123
+ nix run github:nix-community /nixos-anywhere -- --flake <path to configuration>#<configuration name> --vm-test
124
124
```
125
125
126
126
8 . You can now run ** nixos-anywhere** from the command line as shown below,
@@ -132,20 +132,20 @@ below.
132
132
- ` <configuration name> ` must match the name that immediately follows the
133
133
text ` nixosConfigurations. ` in the flake, as indicated by the comment in
134
134
the
135
- [ example] ( https://github.com/numtide /nixos-anywhere-examples/blob/main/flake.nix ) ).
135
+ [ example] ( https://github.com/nix-community /nixos-anywhere-examples/blob/main/flake.nix ) ).
136
136
137
137
- ` <ip address> ` is the IP address of the target machine.
138
138
139
139
```
140
- nix run github:numtide /nixos-anywhere -- --flake <path to configuration>#<configuration name> root@<ip address>
140
+ nix run github:nix-community /nixos-anywhere -- --flake <path to configuration>#<configuration name> root@<ip address>
141
141
```
142
142
143
143
The command would look like this if you had created your files in a
144
144
directory named `/home/mydir/test` and the IP address of your target
145
145
machine is `37.27.18.135`:
146
146
147
147
```
148
- nix run github:numtide /nixos-anywhere -- --flake /home/mydir/test#hetzner-cloud [email protected]
148
+ nix run github:nix-community /nixos-anywhere -- --flake /home/mydir/test#hetzner-cloud [email protected]
149
149
```
150
150
151
151
**nixos-anywhere** will then run, showing various output messages at each
0 commit comments