-
Notifications
You must be signed in to change notification settings - Fork 2
/
Justfile
53 lines (41 loc) · 2.04 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Autogenerated! DO NOT EDIT!
# This justfile is autogenerated via https://std.divnix.com/reference/lib/cfg/just.html
# It can be used without Nix by running a locally installed `just` binary.
# NOTE: Without Nix, you are responsible for having all task dependencies
# available locally!
# edit the key age with ragenix
age cell file:
ragenix --edit ./cells/{{ cell }}/secretProfiles/{{ file }} --rules ./cells/{{ cell }}/secretProfiles/secrets.nix
# re-age key with ragenix
age-rekey:
ragenix --rules $PRJ_ROOT/secrets/secrets.nix --rekey
# Colmena build Guangtao Home Machine
colmena action host:
colmena -f $PRJ_ROOT/nix/hive/flake.nix {{ action }} --on hosts-{{ host }}
# build darwin machine
darwin-build machine:
darwin-rebuild build --flake .#hosts-{{ machine }}
# Formats all changed source files
fmt:
treefmt $(git diff --name-only --cached)
# nixos-rebuild
nixos-build host:
nix build $PRJ_ROOT#nixosConfigurations.{{ host }}.config.system.build.toplevel --no-link
# update packages via nvfetcher
node2nix-update:
cd $PRJ_ROOT/cells/nixos/packages/my-node-packages && sh ./upgrade.sh
# update sources with nvfetcher
nvfetcher path:
nix develop github:GTrunSec/std-ext#update --refresh --command nvfetcher-update {{ path }}/sources.toml
# update default toolchain with nvfetcher
nvfetcher-default:
nix develop github:GTrunSec/std-ext#update --refresh --command nvfetcher-update cells/nixos/packages/./sources.toml
# update emacs toolchain with nvfetcher
nvfetcher-emacs:
nix develop github:GTrunSec/std-ext#update --refresh --command nvfetcher-update cells/nixos/packages/emacs/sources.toml
# update packages via nvfetcher
nvfetcher-update cell:
nix develop github:GTrunSec/std-ext#devShells.x86_64-linux.update --refresh --command nvfetcher-update ./cells/{{ cell }}/packages/sources.toml
# rsync to remote
rsync:
rsync -avzh --exclude='/hivebus/flake.lock' --exclude='/hivebus/flake.nix' 192.168.1.92:/home/guangtao/ghq/github.com/GTrunSec/hivebus ~/ghq/github.com/GTrunSec; nix flake lock --update-input omnibus