From e5842415b240f791075afa6b067a68ebb063c152 Mon Sep 17 00:00:00 2001 From: Kaybee Date: Mon, 12 May 2025 21:45:20 +0200 Subject: [PATCH] Layout Changes --- README.md | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c6fad1d..99c0748 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,10 @@ Requirements to do Remote Deployment using NixOS native Tools. ## 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! > `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 nixos-rebuild switch --flake .#mow0m --build-host master@mow0m --target-host master@mow0m --use-remote-sudo ``` +
+ View command explanation (click to expand) -`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. +
-`#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 ### mow0m