diff --git a/_posts/2025-12-24-installing-nixos-on-a-vps.markdown b/_posts/2025-12-24-installing-nixos-on-a-vps.markdown index 51a7554..5c96527 100644 --- a/_posts/2025-12-24-installing-nixos-on-a-vps.markdown +++ b/_posts/2025-12-24-installing-nixos-on-a-vps.markdown @@ -19,12 +19,12 @@ So I quickly looked into ways of installing NixOS and I discovered two Methods: ## Installing NixOS NixOS-Infect is pretty simple: First, add your public ssh key to the root user like this: -`echo "" >> /root/.ssh/authorized_keys`. +```echo "" >> /root/.ssh/authorized_keys```. After that just run the shell script by running the following: -`curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos- bash -x`. +```curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos- bash -x```. At the time of writing the latest NixOS version is 24.11, so I entered the following: -`curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-24.11 bash -x`. +```curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-24.11 bash -x```. The script will automatically reboot your server and after it finished startup, You can login as the root user using the SSH-key you set up before. ## Configuring afterwards