Skip to content

Commit

Permalink
nixos/server: check $SSH_CLIENT in nixos-rebuild wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Oct 1, 2023
1 parent cf9c2a6 commit 6aebe67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Run nixos-rebuild inside a systemd-run to avoid TTY closing issues
# https://github.com/NixOS/nixpkgs/issues/39118
(writeShellScriptBin "nixos-rebuild" ''
if [[ -z "$NIXOS_REBUILD_FALLBACK" ]] && [[ "$#" -ne 0 ]]; then
if [[ -z "$NIXOS_REBUILD_FALLBACK" ]] && [[ -z "$SSH_CLIENT" ]] && [[ "$#" -ne 0 ]]; then
systemd-run \
-E NIX_PATH \
-E LOCALE_ARCHIVE \
Expand Down

0 comments on commit 6aebe67

Please sign in to comment.