-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
30 lines (20 loc) · 893 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
import "dev/justfile.default"
extra_dev_config := justfile_directory() / 'dev-extra-config.nix'
_build target *args:
nix build "{{ justfile_directory() + '#' + target }}" {{ if args != "" { '-- ' + args } else { '' } }}
_deploy hostname *args:
nix run "{{ justfile_directory() + '#deploy' }}" -- {{ hostname }} {{ args }}
_dry_deploy hostname *args:
just _deploy "{{ hostname }}" --dry-activate {{ args }}
build-geekomA5 *args:
just _build nixosConfigurations.geekomA5.config.system.build.toplevel {{ args }}
deploy-geekomA5 *args:
just _deploy geekomA5 "{{ args }}"
dry-deploy-geekomA5 *args:
just _dry_deploy geekomA5 "{{ args }}"
build-iso *args:
nix run "{{ justfile_directory() + '#build-iso' }}" -- "minimal"
check:
nix flake check "{{ justfile_directory() }}"
generate-host-key:
nix run "{{ justfile_directory() + '#generate-host-key' }}"