mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-11-22 16:13:26 +01:00
polish: style
This commit is contained in:
parent
88430dfb8d
commit
82312b07cc
@ -22,7 +22,7 @@ It's advisable to use the `root` user for deployment as it's more convenient and
|
|||||||
Assuming we intend to deploy remotely using the root user, the initial step involves configuring SSH public key authentication for the root user on the remote host.
|
Assuming we intend to deploy remotely using the root user, the initial step involves configuring SSH public key authentication for the root user on the remote host.
|
||||||
To accomplish this, simply add the following content to any NixOS Module in the remote host's Nix configuration (e.g., `configuration.nix`), then rebuild the system:
|
To accomplish this, simply add the following content to any NixOS Module in the remote host's Nix configuration (e.g., `configuration.nix`), then rebuild the system:
|
||||||
|
|
||||||
```nix
|
```nix{6-9}
|
||||||
# configuration.nix
|
# configuration.nix
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ ssh-add ~/.ssh/your-private-key
|
|||||||
|
|
||||||
In your system's `flake.nix`, add a new outputs named `colmena`. A simple example is shown below:
|
In your system's `flake.nix`, add a new outputs named `colmena`. A simple example is shown below:
|
||||||
|
|
||||||
```nix
|
```nix{11-34}
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
||||||
|
Loading…
Reference in New Issue
Block a user