Files
vps-nixos/scripts/gc-dry.sh
T
aloslider 6761a7c440 Init
Initial commit, nodes are mostly done, panel is WIP
2026-11-17 11:18:02 +03:00

11 lines
188 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
echo "User profiles:"
nix-collect-garbage --dry-run
if [[ $(id -u) -ne 0 ]]; then
echo "System profiles:"
sudo nix-collect-garbage --dry-run
fi