You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4730065
Browse filesBrowse the repository at this point in the historyBrowse files
Unify the hosts/ folder naming, clarify hosts/ is only for our own
self-managed things, rename pkgs/ -> packages/ with one folder per
package, and move package derivations out of nixos/ modules.
- Rename hosts/_appliance_iso -> hosts/_appliance-iso so every managed
host uses hyphens; follow the rename through the flake attr, Makefile,
.gitignore, image modules, and docs.
- Clarify in flake.nix and .gitignore that hosts/ holds only the hosts
we manage centrally (our machines + the appliance/installer image
builds); user-dropped hosts stay gitignored.
- Rename pkgs/ -> packages/ with one folder per package
(coder, coder-binary, coder-from-source, coderd-provider,
terraform-binary, sysbox-runc), each with a default.nix. Move the
sysbox-runc vendor tarball alongside its package.
- Add nixos/modules/ for the service modules and split the two
monolithic, mutually-exclusive k3s files into a shared k3s base plus
podman and sysbox add-ons (each mkDefault-enables the base). New
options: services.coder-nixos.{k3s,podman,sysbox}.enable. Move
tailscale/screenconnect under nixos/modules/ too.
- Extract the inline sysbox-ce .deb derivation into
packages/sysbox-ce/default.nix.
- Delete the unused hosts/qemu-arm64 host.
Note on #18: packages/sysbox-runc/sysbox-runc-vendor-0.7.0.tar.gz cannot
be gitignored as-is. It is consumed via builtins.path and is a
hand-built `go mod vendor` output that cannot be reproduced inside a
sandboxed fixed-output derivation, so it is not fetchable from anywhere;
gitignoring it would delete it and break the build. Satisfying #18 needs
the tarball to become a fetchable release asset (separate change).
Validated with `nix flake check` (all configs evaluate) via zsh.
Copy file name to clipboardExpand all lines: README.md
+25-20Lines changed: 25 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,6 @@ NixOS configuration for Coder demo and workshop boxes.
17
17
18
18
> **Demo box setup**. This repo configures one or more single-purpose physical machines running Coder + k3s as self-contained workshop and demo environments. It is intentionally simple: no HA, no remote state, no cloud provider. Each machine's secrets (IPs, auth keys, passwords) live in a per-host gitignored `hosts/<host>/local.nix` file. Each box runs a Coder server, k3s (single-node), and a set of workspace templates managed by Terraform via the `coderd` provider.
19
19
20
-
## Machines
21
-
22
-
| Hostname | Hardware | LAN IP | Tailscale IP | Status |
23
-
|---|---|---|---|---|
24
-
|`coder-thinkcentre`| Lenovo ThinkCentre M70q Gen 2 | n/a | n/a | active |
25
-
26
20
## Repo Structure
27
21
28
22
```
@@ -35,31 +29,42 @@ local.nix.example # template copied to hosts/<host>/local.nix by instal
35
29
install.sh # one-shot installer: disko + nixos-install + bake /etc/nixos-repo
36
30
nixos/
37
31
disko-standard.nix # shared disko config: 1 GB EFI + ZFS root pool on a single disk
38
-
tailscale.nix # Tailscale module (auth key, no --ssh flag)
Copy file name to clipboardExpand all lines: agents.md
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ it and use `--flake .`) — see the `/etc/nixos` pitfall below.
44
44
45
45
## Tailscale
46
46
47
-
Tailscale is managed by `nixos/tailscale.nix`. Auth key is set as `authKey` in `hosts/<host>/local.nix` (gitignored). Get a reusable key from https://login.tailscale.com/admin/settings/keys.
47
+
Tailscale is managed by `nixos/modules/tailscale`. Auth key is set as `authKey` in `hosts/<host>/local.nix` (gitignored). Get a reusable key from https://login.tailscale.com/admin/settings/keys.
48
48
49
49
**IMPORTANT:** Do NOT add `--ssh` to `extraUpFlags` in `hosts/<host>/local.nix`. Tailscale SSH takes over port 22 with browser-based auth, which will lock you out of the machine. Standard OpenSSH on port 22 is used instead.
Copy file name to clipboardExpand all lines: coderd/templates/k3s-podman/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,4 +38,4 @@ Workspaces run as Kubernetes pods on k3s. The host's **rootless Podman socket**
38
38
39
39
## Requirements
40
40
41
-
Host must have rootless Podman running as the `coder` user and the socket exposed. Enable via `nixos/k3s-podman.nix` in the NixOS configuration.
41
+
Host must have rootless Podman running as the `coder` user and the socket exposed. Enable via `services.coder-nixos.podman.enable = true;` (module: `nixos/modules/podman`) in the NixOS configuration.
Copy file name to clipboardExpand all lines: coderd/templates/k3s-sysbox/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,4 +37,4 @@ Workspaces run as Kubernetes pods using the **sysbox-runc** runtime, which provi
37
37
38
38
## Requirements
39
39
40
-
Host must have sysbox-runc installed and registered as a k3s runtime class. Enable via `nixos/k3s-sysbox.nix` in the NixOS configuration.
40
+
Host must have sysbox-runc installed and registered as a k3s runtime class. Enable via `services.coder-nixos.sysbox.enable = true;` (module: `nixos/modules/sysbox`) in the NixOS configuration.
0 commit comments