-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
34 lines (24 loc) · 1.11 KB
/
justfile
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
@install target:
nix --experimental-features "nix-command flakes" run github:nix-community/disko -- -m disko -f .#{{ target }}
mkdir -p /mnt/var/lib/sops-nix
nixos-install --flake .#{{ target }}
@install-remote target ip:
nix --experimental-features "nix-command flakes" run github:nix-community/nixos-anywhere -- --copy-host-keys --flake .#{{ target }} root@{{ ip }}
@update:
nix flake update
@clean:
nix-collect-garbage -d
@upgrade target="desktop":
nixos-rebuild switch --flake .#{{ target }}
@upgrade-remote target ip:
nixos-rebuild switch --flake .#{{ target }} --target-host "root@{{ ip }}"
@test target:
nixos-rebuild test --flake .#{{ target }}
@fix:
nix-store --repair --verify --check-contents
@runvm:
nix run .#nixosConfigurations.vm-deploy.config.microvm.declaredRunner
@geniso:
nix build .#nixosConfigurations.desktop.config.formats.iso
@genfacter:
nix run --option extra-substituters https://numtide.cachix.org --option extra-trusted-public-keys numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE= github:numtide/nixos-facter -- -o facter.json