From e82575c6cd1c32385f239475674bc6605c9d6cff Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Sun, 19 Jul 2026 08:01:08 +0200 Subject: Fix deploy command flag: --use-remote-sudo is deprecated nixos-rebuild warns that --use-remote-sudo is deprecated in favor of --elevate=sudo; update both documented deploy commands accordingly. Co-Authored-By: Claude Sonnet 5 --- CLAUDE.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index c11918d..e18f301 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -22,7 +22,7 @@ Deploy a change (from an x86_64-linux machine): ```bash nixos-rebuild switch --flake .#eurovm \ --target-host admin@ \ - --use-remote-sudo + --elevate=sudo ``` Deploy from a non-x86_64-linux machine (e.g. Apple Silicon) — the server builds its own closure: @@ -30,7 +30,7 @@ Deploy from a non-x86_64-linux machine (e.g. Apple Silicon) — the server build nixos-rebuild switch --flake .#eurovm \ --target-host admin@ \ --build-host admin@ \ - --use-remote-sudo + --elevate=sudo ``` First-time provisioning of a fresh VM (partitions the disk via disko, installs NixOS): diff --git a/README.md b/README.md index f714059..0cdf82b 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ Commit and push `.sops.yaml` and the re-encrypted `secrets/secrets.yaml`, then d nixos-rebuild switch --flake .#eurovm \ --target-host admin@ \ --build-host admin@ \ - --use-remote-sudo + --elevate=sudo ``` If your local machine is also x86_64-linux you can omit `--build-host`. @@ -241,7 +241,7 @@ If you push this repo to GitHub/Forgejo/cgit, update the `autoUpgrade.flake` lin nixos-rebuild switch --flake .#eurovm \ --target-host admin@ \ --build-host admin@ \ - --use-remote-sudo + --elevate=sudo ``` If your local machine is also x86_64-linux you can omit `--build-host`. -- cgit v1.3.1