mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 01:18:26 +02:00
feat: update for darwin
This commit is contained in:
27
Makefile
27
Makefile
@@ -1,8 +1,11 @@
|
||||
deploy:
|
||||
sudo nixos-rebuild switch --flake .
|
||||
sudo nixos-rebuild switch --flake . \
|
||||
--extra-experimental-features 'nix-command flakes'
|
||||
|
||||
debug:
|
||||
sudo nixos-rebuild switch --flake . --show-trace --verbose
|
||||
sudo nixos-rebuild switch --flake . \
|
||||
--show-trace --verbose \
|
||||
--extra-experimental-features 'nix-command flakes'
|
||||
|
||||
update:
|
||||
nix flake update
|
||||
@@ -13,3 +16,23 @@ history:
|
||||
gc:
|
||||
sudo nix-collect-garbage --delete-older-than 14d
|
||||
|
||||
darwin-set-proxy:
|
||||
# set proxy for nix-daemon to speed up downloads
|
||||
# https://github.com/NixOS/nix/issues/1472#issuecomment-1532955973
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user