mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-17 23:26:39 +01:00
38 lines
966 B
Makefile
38 lines
966 B
Makefile
deploy:
|
|
sudo nixos-rebuild switch --flake .
|
|
|
|
debug:
|
|
sudo nixos-rebuild switch --flake . --show-trace --verbose
|
|
|
|
update:
|
|
nix flake update
|
|
|
|
history:
|
|
nix profile history --profile /nix/var/nix/profiles/system
|
|
|
|
gc:
|
|
# remove all generations older than 7 days
|
|
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
|
|
|
|
# garbage collect all unused nix store entries older than 14 days
|
|
sudo nix store gc --debug
|
|
|
|
darwin-set-proxy:
|
|
sudo python3 scripts/darwin_set_proxy.py
|
|
|
|
darwin: darwin-set-proxy
|
|
nix build .#darwinConfigurations.harmonica.system \
|
|
--extra-experimental-features 'nix-command flakes'
|
|
./result/sw/bin/darwin-rebuild switch --flake .
|
|
|
|
darwin-debug: darwin-set-proxy
|
|
nix build .#darwinConfigurations.harmonica.system \
|
|
--show-trace --verbose \
|
|
--extra-experimental-features 'nix-command flakes'
|
|
./result/sw/bin/darwin-rebuild switch --flake . --show-trace --verbose
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf result
|