-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 1003 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
38
39
HOSTNAME = $(shell hostname)
USER = $(shell whoami)
system-diff:
nix profile diff-closures --profile /nix/var/nix/profiles/system
home-manager-diff:
nix profile diff-closures --profile /nix/var/nix/profiles/per-user/${USER}/home-manager
nixos-switch:
nixos-rebuild switch --flake .#${HOSTNAME} --use-remote-sudo
nixos-upgrade:
nixos-rebuild switch --upgrade --flake .#${HOSTNAME} --use-remote-sudo --option eval-cache false
nixos-build:
nixos-rebuild build --flake .#${HOSTNAME} |& nom
nvd diff /run/current-system ./result
nix-purge:
nix-collect-garbage -d
nix-check:
nix-store --verify --check-contents
nix-optimise:
nix store optimise
nix-meta:
nix-env -qa --meta --json '.*' > meta.json
pi0-deploy:
nixos-rebuild switch -j auto --flake .#pi0 --target-host [email protected] --use-remote-sudo -v
apu-deploy:
nixos-rebuild switch -j auto --flake .#apu --target-host [email protected] --use-remote-sudo -v
iso:
nix build .#nixosConfigurations.iso.config.system.build.isoImage