Files
config/.remoteenv
T
2025-03-20 13:48:34 +01:00

14 lines
301 B
Bash

#!/usr/bin/env bash
export HOST_SHELL="$(command -v "$SHELL")"
export IS_REMOTE_ENV=1
flake_shell=.#remoteenv
if [[ ! -f /run/current-system/nixos-version ]]; then
flake_shell+=-fhs
fi
eval "$(nix print-dev-env "$flake_shell")"
unset flake_shell
echo Entered "$(hostname --fqdn)"
df -h /nix/store