-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (31 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
default:
NIXPKGS_ALLOW_INSECURE=1 NIXPKGS_ALLOW_UNFREE=1 darwin-rebuild switch --flake .#mkDarwin --impure
update:
NIXPKGS_ALLOW_UNFREE=1 nix flake update
fallback:
NIXPKGS_ALLOW_INSECURE=1 NIXPKGS_ALLOW_UNFREE=1 darwin-rebuild switch --flake .#mkDarwin --impure --fallback
build:
env NIXPKGS_ALLOW_UNFREE=1 nix build .#darwinConfigurations.mkDarwin.system --impure
post-build:
NIXPKGS_ALLOW_UNFREE=1 ./result/sw/bin/darwin-rebuild switch --flake .#mkDarwin --impure
repair:
nix-store --verify --check-contents --repair
verify:
NIXPKGS_ALLOW_UNFREE=1 nix store verify .#darwinConfigurations.mkDarwin.system --impure
delete:
NIXPKGS_ALLOW_UNFREE=1 nix store delete .#darwinConfigurations.mkDarwin.system --impure
sign:
NIXPKGS_ALLOW_UNFREE=1 nix store sign .#darwinConfigurations.mkDarwin.system --impure
optimise:
NIXPKGS_ALLOW_UNFREE=1 nix store optimise
doctor:
NIXPKGS_ALLOW_UNFREE=1 nix doctor
fix-channel:
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update nixpkgs
gc:
nix store gc
nix-collect-garbage -d
sudo nix-collect-garbage -d
fix-ownership:
chown -R $(USER):staff /nix