-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
27 lines (21 loc) · 699 Bytes
/
justfile
File metadata and controls
27 lines (21 loc) · 699 Bytes
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
default:
@just --list
format HOST FLAKE:
#!/usr/bin/env bash
echo "Are you sure you want to format the server at {{HOST}} with the flake {{FLAKE}}? [y/N]"
read -r CONFIRMATION
if [[ "$CONFIRMATION" == "y" ]]; then
nix run github:nix-community/nixos-anywhere -- --flake .#{{FLAKE}} root@{{HOST}}
else
echo "Aborted."
fi
update HOST FLAKE:
nix run nixpkgs#nixos-rebuild -- switch --flake .#{{FLAKE}} --target-host root@{{HOST}}
format-mailserver:
just format mail.hensg.dev mailserver
update-mailserver:
just update mail.hensg.dev mailserver
format-website:
just format hensg.dev website
update-website:
just update hensg.dev website