Layout Changes

This commit is contained in:
Kaybee 2025-05-12 21:45:20 +02:00
parent aa45c70d0a
commit e5842415b2
Signed by: kb01
SSH key fingerprint: SHA256:kv2GYUy1MZEqusYnS+Y9nMgrpv77jhm+3kknl3UGV1k

View file

@ -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,18 +42,22 @@ 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. `--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)) `#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. `--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. `--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. `--use-remote-sudo` this will redirect the Sudo-Prompt on the Target-Host to your Command-Prompt.
</details>
## Hosts ## Hosts