-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
35 lines (28 loc) · 947 Bytes
/
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
35
default:
@just --list
# Format all files
fmt:
nix fmt
statix fix
# Check for nix errors
check:
# Allow unsupported for MacOS w/ devenv, see https://github.com/cachix/devenv/issues/1455
NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix flake check --impure --all-systems
remote-build host system user=`printf $USER`:
@printf "Building on {{host}}...\nUser: %s\n" "{{user}}"
nixos-rebuild switch --fast --use-remote-sudo \
--flake .#{{system}} \
--target-host {{user}}@{{host}} \
--build-host {{user}}@{{host}}
build system="":
@printf "Building locally..." "{{system}}"
nixos-rebuild switch --fast --flake .#{{system}}
build-iso:
@printf "Generating installer image"
nix build .#nixosConfigurations.installer.config.system.build.isoImage
# Run this after editing .sops.yaml
sops-updatekeys:
sops updatekeys secrets.yaml
# Edit or view the secrets
sops-edit:
sops secrets.yaml