This commit is contained in:
Sridhar Ratnakumar 2025-11-01 14:41:34 -04:00
parent 53f63064e8
commit 23fc0ec9a2

View file

@ -7,6 +7,7 @@ default:
# Activate the given host or home environment # Activate the given host or home environment
[group('main')] [group('main')]
activate host="": activate host="":
nix flake lock
@if [ -z "{{host}}" ]; then \ @if [ -z "{{host}}" ]; then \
if [ -f ./configurations/home/$USER@$HOSTNAME.nix ]; then \ if [ -f ./configurations/home/$USER@$HOSTNAME.nix ]; then \
echo "Activating home env $USER@$HOSTNAME ..."; \ echo "Activating home env $USER@$HOSTNAME ..."; \
@ -43,4 +44,4 @@ tart-ssh:
[group('misc')] [group('misc')]
fuckboot: fuckboot:
sudo nix-collect-garbage -d sudo nix-collect-garbage -d
sudo /run/current-system/bin/switch-to-configuration boot sudo /run/current-system/bin/switch-to-configuration boot