mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-07 08:37:34 +08:00
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
default:
|
|
@just --list
|
|
|
|
|
|
# Activate local configuration (home if exists, else system)
|
|
[group('main')]
|
|
activate:
|
|
if [ -f ./configurations/home/$USER@$HOSTNAME.nix ]; then \
|
|
set -x; nix run . $USER@$HOSTNAME; \
|
|
else \
|
|
set -x; nix run . $HOSTNAME; \
|
|
fi
|
|
|
|
# Update primary flame inputs
|
|
update:
|
|
nix run .#update
|
|
|
|
# Deploy to Beelink
|
|
[group('deploy')]
|
|
pureintent:
|
|
nix run . pureintent
|
|
|
|
# Deploy to infinitude (mac)
|
|
[group('deploy')]
|
|
infinitude:
|
|
nix run . infinitude
|
|
|
|
# Activate home config on stillness
|
|
[group('deploy')]
|
|
stillness:
|
|
nix run . $USER@
|
|
|
|
# Deploy to orb nixos machine
|
|
# [group('deploy')]
|
|
# orb:
|
|
# nix run . orb-nixos
|
|
|
|
# Deploy to tart VM
|
|
[group('deploy')]
|
|
tart:
|
|
nix run . infinitude-nixos
|
|
|
|
# SSH to tart CM
|
|
[group('ssh')]
|
|
tart-ssh:
|
|
ssh $(tart ip nixos-vm)
|
|
|
|
# Run all pre-commit hooks on all files
|
|
pca:
|
|
pre-commit run --all-files
|
|
|
|
# https://discourse.nixos.org/t/why-doesnt-nix-collect-garbage-remove-old-generations-from-efi-menu/17592/4
|
|
fuckboot:
|
|
sudo nix-collect-garbage -d
|
|
sudo /run/current-system/bin/switch-to-configuration boot
|