Layout Changes
This commit is contained in:
parent
aa45c70d0a
commit
e5842415b2
1 changed files with 17 additions and 11 deletions
28
README.md
28
README.md
|
@ -30,8 +30,10 @@ Requirements to do Remote Deployment using NixOS native Tools.
|
||||||
|
|
||||||
## Remote Deployment
|
## Remote Deployment
|
||||||
|
|
||||||
So, you updated the Configuration on your Computer, how can you deploy it to the Server?
|
So, you changed the Configuration on your Computer, how can you deploy it to the Server?
|
||||||
|
|
||||||
|
> **Warning**
|
||||||
|
>
|
||||||
> Don't forget to stage Added or Deleted Files!
|
> Don't forget to stage Added or Deleted Files!
|
||||||
> `git add .` (They will be ignored if you miss this step!)
|
> `git add .` (They will be ignored if you miss this step!)
|
||||||
|
|
||||||
|
@ -40,19 +42,23 @@ Now Rebuild the System (on the Server) and Deploy it Remotely to the Server (Exa
|
||||||
``` bash
|
``` bash
|
||||||
nixos-rebuild switch --flake .#mow0m --build-host master@mow0m --target-host master@mow0m --use-remote-sudo
|
nixos-rebuild switch --flake .#mow0m --build-host master@mow0m --target-host master@mow0m --use-remote-sudo
|
||||||
```
|
```
|
||||||
|
<details>
|
||||||
|
<summary>View command explanation (click to expand)</summary>
|
||||||
|
|
||||||
`nixos-rebuild switch` will rebuild a NixOS Configuration and Switch to it immediately, by restarting affected Services.
|
`nixos-rebuild switch` will rebuild a NixOS Configuration and Switch to it immediately, by restarting affected Services.
|
||||||
|
|
||||||
|
`--flake .` specifies the Directory of flake.nix with the NixOS System Configuration.
|
||||||
|
|
||||||
|
`#mow0m` tells it to Build the NixOS-System with the Hostname mow0m of the Flake. (See [Hosts](#hosts))
|
||||||
|
|
||||||
|
`--build-host master@mow0m` specifies the SSH-Connection to the Build-Host. We will build on the Target Host, to avoid messing with Signatures of the Nix-Store.
|
||||||
|
|
||||||
|
`--target-host master@mow0m` specifies the SSH-Connection to the Target-Host to deploy the Configuration to.
|
||||||
|
|
||||||
|
`--use-remote-sudo` this will redirect the Sudo-Prompt on the Target-Host to your Command-Prompt.
|
||||||
|
|
||||||
`--flake .` specifies the Directory of flake.nix with the NixOS System Configuration.
|
</details>
|
||||||
|
|
||||||
`#mow0m` tells it to Build the NixOS-System with the Hostname mow0m of the Flake. (See [Hosts](#hosts))
|
|
||||||
|
|
||||||
`--build-host master@mow0m` specifies the SSH-Connection to the Build-Host. We will build on the Target Host, to avoid messing with Signatures of the Nix-Store.
|
|
||||||
|
|
||||||
`--target-host master@mow0m` specifies the SSH-Connection to the Target-Host to deploy the Configuration to.
|
|
||||||
|
|
||||||
`--use-remote-sudo` this will redirect the Sudo-Prompt on the Target-Host to your Command-Prompt.
|
|
||||||
|
|
||||||
## Hosts
|
## Hosts
|
||||||
|
|
||||||
### mow0m
|
### mow0m
|
||||||
|
|
Loading…
Add table
Reference in a new issue