-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
40 lines (32 loc) · 1.02 KB
/
Copy pathjustfile
File metadata and controls
40 lines (32 loc) · 1.02 KB
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
# List recipes by default
default:
just -l
# Build the NixOS configuration for a specific host
make-config HOST:
nix build -L .#nixosConfigurations.{{HOST}}.config.system.build.toplevel
# Build the virtual imagine for provisioning the server for a given host
make-image HOST:
nix build -L .#nixosConfigurations.{{HOST}}.config.system.build.digitalOceanImage
# Check the syntax of the flake
check-flake:
nix flake check
# Use nix-tree to view the contents of a host's derivation
view-host-tree HOST:
nix-tree .#nixosConfigurations.{{HOST}}.config.system.build.toplevel
# Format all files in the repo
format-all:
pre-commit run --all-files
# Connect to a given host
connect HOST:
ssh {{HOST}}.gtf.io
# Deploy configuration to a given host
deploy HOST:
nixos-rebuild --fast \
--target-host {{HOST}}.gtf.io \
--flake .#{{HOST}} \
--use-remote-sudo \
switch
# Update my dependencies
update-my-deps:
nix flake update gtf-io
nix flake update wedding-website