Files
nixos/Justfile

30 lines
396 B
Makefile

default:
@just --list
all:
@echo "No command provided"
home:
echo "HOME is: '${HOME}'"
machine:
@echo "${HOSTNAME}"
switch:
nh os switch -a -H "${HOSTNAME}" .
new-machine:
sudo nixos-rebuild switch --flake .#${HOSTNAME}
test:
nh os test -a -H "${HOSTNAME}" .
update:
sudo nix flake update
upgrade: update switch
clean:
sudo nix-collect-garbage -d
sudo nix-store --optimise