commit 62e1b51e716c164905888fa5a4d2ec28ccdbbcec
parent 26e185df88e0c30aebba886f841241e3a141169c
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Fri, 4 Apr 2025 15:45:15 +0200
chore: add shell prefixes to scripts
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/README b/README
@@ -23,8 +23,8 @@ target machine.
When I want to install a server, my choice is nixos-anywhere:
- nixos-anywhere --generate-hardware-config nixos-generate-config \
- hardware/server/default.nix --flake .#server <root@url>
+ $ nixos-anywhere --generate-hardware-config nixos-generate-config \
+ hardware/server/default.nix --flake .#server <root@url>
See <https://nix-community.github.io/nixos-anywhere> for more information.
@@ -32,10 +32,9 @@ When instead I want to install my laptop configuration I would retrieve the
official minimal ISO image from <https://nixos.org/download>, clone this
repository, generate the hardware configuration file and use nixos-install:
- # Disk partitioning, etc.
- nixos-generate-config --show-hardware-config > hardware/laptop/default.nix
- nixos-install --root /mnt --flake .#laptop --no-root-password --option \
- extra-experimental-features 'nix-command flakes pipe-operators'
+ $ nixos-generate-config --show-hardware-config > hardware/laptop/default.nix
+ # nixos-install --root /mnt --flake .#laptop --no-root-password --option \
+ extra-experimental-features 'nix-command flakes pipe-operators'
Usage
-----
@@ -43,9 +42,9 @@ Usage
When the server configuration changes, I rebuild the machine using
nixos-rebuild through SSH:
- nixos-rebuild switch --flake .#server --target-host <root@url>
+ $ nixos-rebuild switch --flake .#server --target-host <root@url>
When the laptop configuration changes, I rebuild my laptop using nixos-rebuild:
- nixos-rebuild switch --flake .#laptop
+ # nixos-rebuild switch --flake .#laptop