-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·37 lines (27 loc) · 946 Bytes
/
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
iso-file = $(shell eza ./result/iso/)
cleaning:
sudo nix-collect-garbage -d
update:
nix-channel --update
nix flake update
sudo nixos-rebuild --upgrade switch --flake .
iso:
nix build .#nixosConfigurations.pandora.config.system.build.isoImage
iso-to-usb:
dd bs=4M if="./result/iso/${iso-file}" of=/dev/sdX status=progress oflag=sync
rebuild:
nix flake update
sudo nixos-rebuild switch --flake .
rebuild-home:
home-manager switch --flake .
repair-boot:
sudo nixos-rebuild --install-bootloader boot --flake .
repair-store:
sudo nix-store --verify --repair --check-contents
test:
nix flake check --verbose
add-channels:
sudo nix-channel --add https://nixos.org/channels/nixos-unstable unstable
sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
sudo nix-channel --update