-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
69 lines (56 loc) · 2.64 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
override-omnibus := "nix flake lock --override-input omnibus"
remove-flake-lock := "git rm flake.lock -f"
std-standard:
nix develop ./local\#std --command bash -c "(cd examples/stdStandard \
&& {{ override-omnibus }} ../.. \
&& std //dev/scripts/hello:run \
&& {{ remove-flake-lock }})"
std-default: std-default-sync
nix develop ./local\#std --command bash -c "(cd examples/StdDefault \
&& {{ override-omnibus }} ../.. \
&& TERM=xterm-256color; std //dev/scripts/pog-test:run -- tasks --help \
&& std //dev/scripts/makes-test:run \
&& std //dev/scripts/hello:run \
&& std //dev/tasks/hello:run \
&& std //dev/packages/hello:build \
&& std //dev/shells/default:build \
&& nix build .#hello \
&& rm result \
&& {{ remove-flake-lock }})"
std-default-sync:
rsync -av ./units/std/defaultCellsFrom/dev/ ./units/std/defaultCellsFrom/prod
deadnix:
deadnix . --edit --exclude ./units/std/blockTypes/*
justfmt:
just --fmt --unstable
examples-nvfetcher:
nix run .\#scripts.nvfetch-update ./examples/packages/source.toml
template-nixos:
nix build ./templates/nixos#nixosConfigurations.nixos.config.system.build.toplevel \
--dry-run --override-input omnibus ./. --no-link
local-nixos:
nix build ./local#eval.nixos.expr.nixosConfiguration.config.system.build.toplevel --dry-run --no-link
nixci-examples-packages:
(cd examples && {{ override-omnibus }} .. && nixci build && {{ remove-flake-lock }})
examples-simple:
nix flake lock --update-input omnibus ./examples/simple --override-input omnibus ./.
(cd examples/simple && \
nix build ./#nixosConfigurations.simple.config.system.build.toplevel \
--dry-run --no-link \
&& {{ remove-flake-lock }})
examples-system-manager:
nix flake lock --update-input omnibus ./examples/system-manager --override-input omnibus ./.
(cd examples/system-manager && \
nix run 'github:numtide/system-manager' --refresh --extra-substituters https://cache.garnix.io \
--extra-trusted-public-keys cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= \
-- build --flake ./#example \
&& {{ remove-flake-lock }} && rm ./result)
nixci-examples-python:
nix flake lock --update-input omnibus ./examples/python --override-input omnibus ./.
(cd examples/python && nixci build && git rm flake.lock -f)
nixci-jupyenv +quarto:
# --execute-daemon-restart
nix flake lock --update-input omnibus ./examples/jupyenv+quarto --override-input omnibus ./.
(cd examples/jupyenv+quarto && nixci build && \
nix run .#quartoSimple -- render ./quarto \
&& {{ remove-flake-lock }})