Skip to content

Commit beeae7d

Browse files
committed
treefmt: add deno for markdown, json and yaml
1 parent a2bb14a commit beeae7d

File tree

30 files changed

+931
-775
lines changed

30 files changed

+931
-775
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ about: Suggest an improvement for this project
44
title: ''
55
labels: enhancement
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**
1110

12-
<!--
11+
<!--
1312
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
1413
-->
1514

.github/ISSUE_TEMPLATE/service_disruption.md

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Use this to report service instabilities
44
title: '<service-name>: '
55
labels: bug
66
assignees: ''
7-
87
---
98

109
**Affected service**
@@ -18,4 +17,3 @@ assignees: ''
1817
**System information**
1918

2019
<!-- Relevant system versions. If it's a connectivity issue, `mtr` reports. -->
21-

.github/workflows/ci.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
nix-build:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: cachix/install-nix-action@v30
21-
- uses: DeterminateSystems/magic-nix-cache-action@v8
22-
- run: nix run github:Mic92/nix-fast-build -- --no-nom
19+
- uses: actions/checkout@v4
20+
- uses: cachix/install-nix-action@v30
21+
- uses: DeterminateSystems/magic-nix-cache-action@v8
22+
- run: nix run github:Mic92/nix-fast-build -- --no-nom
2323
# all builds combined consume too much disk space... we should soon switch to something else
2424
nixos:
2525
runs-on: ubuntu-latest
@@ -30,18 +30,18 @@ jobs:
3030
#machine: [caliban, umbriel]
3131
machine: [caliban]
3232
steps:
33-
- uses: actions/checkout@v4
34-
- uses: cachix/install-nix-action@v30
35-
- uses: DeterminateSystems/magic-nix-cache-action@v8
36-
- run: nix build '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel'
33+
- uses: actions/checkout@v4
34+
- uses: cachix/install-nix-action@v30
35+
- uses: DeterminateSystems/magic-nix-cache-action@v8
36+
- run: nix build '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel'
3737
nix-darwin:
3838
runs-on: macos-latest
3939
strategy:
4040
matrix:
4141
# Doesn't seem that x86_64 is still in use?
4242
machine: [arm64]
4343
steps:
44-
- uses: actions/checkout@v4
45-
- uses: cachix/install-nix-action@v30
46-
- uses: DeterminateSystems/magic-nix-cache-action@v8
47-
- run: nix build '.#darwinConfigurations."${{ matrix.machine }}".config.system.build.toplevel'
44+
- uses: actions/checkout@v4
45+
- uses: cachix/install-nix-action@v30
46+
- uses: DeterminateSystems/magic-nix-cache-action@v8
47+
- run: nix build '.#darwinConfigurations."${{ matrix.machine }}".config.system.build.toplevel'

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
This repository contains all the hardware configuration for the nixos project
44
infrastructure.
55

6-
All the hosts are currently managed using NixOps. Some of the infrastructure
7-
is managed using Terraform. There are still a lot of things configured
8-
manually.
6+
All the hosts are currently managed using NixOps. Some of the infrastructure is
7+
managed using Terraform. There are still a lot of things configured manually.
98

109
## Docs
1110

12-
* [Resources inventory](docs/inventory.md)
11+
- [Resources inventory](docs/inventory.md)
1312

1413
## Team
1514

@@ -29,17 +28,19 @@ All the members should be watching this repository for changes.
2928

3029
## Regular catch up
3130

32-
We meet regularly over Jitsi to hash some issues out. Sometimes it helps to have dedicated focus and higher communication bandwidth.
31+
We meet regularly over Jitsi to hash some issues out. Sometimes it helps to have
32+
dedicated focus and higher communication bandwidth.
3333

34-
It started Thursday, January 11, 2024, at 6 pm CET (UTC+1), and then repeats every two weeks, on Thursdays at 6 pm CET.
34+
It started Thursday, January 11, 2024, at 6 pm CET (UTC+1), and then repeats
35+
every two weeks, on Thursdays at 6 pm CET.
3536

3637
<a target="_blank" href="https://calendar.google.com/calendar/event?action=TEMPLATE&amp;tmeid=MDVjdjNpOG5qazhscjlna3Mxcmw0aHVzODIgam9uYXNAbnVtdGlkZS5jb20&amp;tmsrc=jonas%40numtide.com"><img border="0" src="https://www.google.com/calendar/images/ext/gc_button1_en.gif"></a>
3738

3839
Location: <https://jitsi.lassul.us/nixos-infra>
3940

4041
## Reporting issues
4142

42-
If you experience any issues with the infrastructure, please [post a new issue
43-
to this repository][1].
43+
If you experience any issues with the infrastructure, please
44+
[post a new issue to this repository][1].
4445

4546
[1]: https://github.com/NixOS/nixos-org-configurations/issues/new

build/haumea/zrepl.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
global:
66
logging:
77
- type: "stdout"
8-
level: "error"
8+
level: "error"
99
format: "human"
1010
- type: "syslog"
11-
level: "info"
11+
level: "info"
1212
format: "logfmt"
1313

1414
# mostly from https://blog.lenny.ninja/zrepl-on-rsync-net.html
@@ -17,7 +17,7 @@ jobs:
1717
type: sink
1818
serve:
1919
type: stdinserver
20-
client_identities: [ haumea ]
20+
client_identities: [haumea]
2121
recv:
2222
placeholder:
2323
encryption: off

build/nginx-error-pages/503.html

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
<!DOCTYPE html>
22

33
<html>
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>Hydra is down</title>
7+
<style type="text/css" media="screen">
8+
body {
9+
font-family: Helvetica, Arial, sans-serif;
10+
color: rgba(0, 0, 0, 0.7);
11+
}
12+
</style>
13+
</head>
414

5-
<head>
6-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7-
<title>Hydra is down</title>
8-
<style type="text/css" media="screen">
9-
body {
10-
font-family: Helvetica, Arial, sans-serif;
11-
color: rgba(0, 0, 0, 0.7);
12-
}
13-
</style>
14-
</head>
15-
16-
<body>
17-
<center>
18-
<img src="/apache-errors/warning.png" alt="Warning" />
19-
<p>Looks like Hydra is having some problems. Sorry about that!</p>
20-
<p style="font-size: 90%;">
21-
<a href="https://nixos.org/">NixOS Homepage</a> |
22-
<a href="https://monitoring.nixos.org/prometheus/alerts">System Alerts</a> |
23-
<a href="https://monitoring.nixos.org/grafana/">Dashboards</a> |
24-
<a href="https://github.com/NixOS/nixpkgs/labels/infrastructure">Related Issues</a>
25-
</p>
26-
</center>
27-
</body>
28-
15+
<body>
16+
<center>
17+
<img src="/apache-errors/warning.png" alt="Warning" />
18+
<p>Looks like Hydra is having some problems. Sorry about that!</p>
19+
<p style="font-size: 90%">
20+
<a href="https://nixos.org/">NixOS Homepage</a> |
21+
<a href="https://monitoring.nixos.org/prometheus/alerts"
22+
>System Alerts</a> |
23+
<a href="https://monitoring.nixos.org/grafana/">Dashboards</a> |
24+
<a href="https://github.com/NixOS/nixpkgs/labels/infrastructure"
25+
>Related Issues</a>
26+
</p>
27+
</center>
28+
</body>
2929
</html>

build/rhea/install.md

+22-16
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Setup
22

33
## Switch to UEFI
4-
First submit a support ticket asking them to enable UEFI.
5-
See: https://docs.hetzner.com/robot/dedicated-server/operating-systems/uefi/
4+
5+
First submit a support ticket asking them to enable UEFI. See:
6+
https://docs.hetzner.com/robot/dedicated-server/operating-systems/uefi/
67

78
# Correct the NVMe namespace's block size
89

9-
Verify the NVMe disks are formatted at the namespace level with 4096 blocks.
10-
See https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Hardware.html#nvme-low-level-formatting
10+
Verify the NVMe disks are formatted at the namespace level with 4096 blocks. See
11+
https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Hardware.html#nvme-low-level-formatting
1112

1213
This disk's LBA is 512:
1314

@@ -236,7 +237,8 @@ nixos-generate-config --root /mnt
236237
In the `configuration.nix`:
237238

238239
1. Add `hetzner.nix` to the list of `imports` at the top.
239-
2. Add an authorized key and enable SSH. This will be removed later when it is imported into NixOps, so it is just for bootstrapping:
240+
2. Add an authorized key and enable SSH. This will be removed later when it is
241+
imported into NixOps, so it is just for bootstrapping:
240242

241243
```
242244
services.openssh.enable = true;
@@ -245,24 +247,28 @@ users.users.root.openssh.authorizedKeys.keys = [ "ssh-..." ];
245247

246248
### Hardware Configuration Changes
247249

248-
Edit `hardware-configuration.nix` and change the fileSystems value for `/nix/var/nix` to make it required for boot:
250+
Edit `hardware-configuration.nix` and change the fileSystems value for
251+
`/nix/var/nix` to make it required for boot:
249252

250253
```nix
251-
fileSystems."/nix/var/nix/db" =
252-
{ device = "rpool/local/nix/db";
253-
fsType = "zfs";
254-
neededForBoot = true;
255-
};
254+
fileSystems."/nix/var/nix/db" =
255+
{ device = "rpool/local/nix/db";
256+
fsType = "zfs";
257+
neededForBoot = true;
258+
};
256259
```
257260

258261
### Hetzner.nix
259262

260263
Then create a file, `hetzner.nix`.
261264

262-
* The all-zeros hostId is fine, though I generated one with `head -c4 /dev/urandom | od -A none -t x4`
263-
* The `enp7s0` and `MACAddress` value I got from `ip addr`
264-
* The IP addresses and gateways I got from the Robot webpage under the IPs tab, hovering over the IPv4 and IPv6 addresses.
265-
* Thee DNS resolvers I got from https://docs.hetzner.com/dns-console/dns/general/recursive-name-servers/
265+
- The all-zeros hostId is fine, though I generated one with
266+
`head -c4 /dev/urandom | od -A none -t x4`
267+
- The `enp7s0` and `MACAddress` value I got from `ip addr`
268+
- The IP addresses and gateways I got from the Robot webpage under the IPs tab,
269+
hovering over the IPv4 and IPv6 addresses.
270+
- Thee DNS resolvers I got from
271+
https://docs.hetzner.com/dns-console/dns/general/recursive-name-servers/
266272

267273
```nix
268274
{
@@ -302,4 +308,4 @@ Then run:
302308

303309
```
304310
nixos-install -I nixpkgs=channel:nixos-21.11
305-
```
311+
```

0 commit comments

Comments
 (0)