mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
15 lines
264 B
Makefile
15 lines
264 B
Makefile
HOSTNAME ?= $(hostname)
|
|
|
|
all:
|
|
echo "No command provided"
|
|
|
|
switch:
|
|
nixos-rebuild switch --flake ".#${HOSTNAME}" --use-remote-sudo
|
|
|
|
test:
|
|
nixos-rebuild test --flake ".#${HOSTNAME}" --use-remote-sudo
|
|
|
|
clean:
|
|
sudo nix-collect-garbage -d
|
|
sudo nix-store --optimise
|