Some checks failed
Run pre-commit on all files / pre-commit (pull_request) Successful in 48s
Run pre-commit on all files / pre-commit (push) Successful in 48s
Check meta / check_dns (push) Successful in 17s
Check meta / check_meta (push) Successful in 15s
Check meta / check_meta (pull_request) Successful in 16s
Check meta / check_dns (pull_request) Successful in 23s
Build all the nodes / Jaccess01 (pull_request) Successful in 24s
Check workflows / check_workflows (pull_request) Successful in 25s
Build all the nodes / Jaccess04 (pull_request) Successful in 25s
Build all the nodes / ap01 (pull_request) Successful in 41s
Build all the nodes / bridge01 (pull_request) Successful in 50s
Build all the nodes / cof02 (pull_request) Successful in 48s
Build all the nodes / geo01 (pull_request) Successful in 47s
Build all the nodes / geo02 (pull_request) Successful in 46s
Build all the nodes / hypervisor01 (pull_request) Successful in 52s
Build all the nodes / hypervisor02 (pull_request) Successful in 48s
Build all the nodes / netcore01 (pull_request) Successful in 22s
Build all the nodes / compute01 (pull_request) Successful in 1m24s
Build all the nodes / hypervisor03 (pull_request) Successful in 54s
Build all the nodes / netcore02 (pull_request) Successful in 26s
Build the shell / build-shell (pull_request) Successful in 25s
Build all the nodes / iso (pull_request) Successful in 1m16s
Build all the nodes / lab-router01 (pull_request) Successful in 1m4s
Build all the nodes / krz01 (pull_request) Successful in 1m39s
Build all the nodes / tower01 (pull_request) Successful in 1m1s
Build all the nodes / rescue01 (pull_request) Successful in 1m23s
Build all the nodes / web03 (pull_request) Successful in 1m6s
Build all the nodes / vault01 (pull_request) Successful in 1m8s
Build all the nodes / web02 (pull_request) Successful in 1m10s
Build all the nodes / zulip01 (pull_request) Successful in 1m11s
Build all the nodes / web01 (pull_request) Successful in 1m15s
Build all the nodes / storage01 (pull_request) Successful in 1m26s
Build all the nodes / build01 (pull_request) Failing after 13m33s
3e3afe5174c561dee0df6f2c2b2236990146329f → ee930f9755f58096ac6e8ca94a1887e0534e2d81 Last 50 commits: ba8c114 vengi-tools: 0.0.37 -> 0.0.38 9a4b659 app2unit: 0-unstable-2025-05-09 -> 0.9.0 (#415367) 40f1bb6 arrayUtilities: init (#385960) ab2a6c5 hyprlandPlugins.hyprsplit: 0.48.1-unstable-2025-05-03 -> 0.49.0 (#415722) fb85ed7 firefly-iii-data-importer: 1.6.1 -> 1.6.3 (#415606) bc0b002 ghidra-extensions.kaiju: 250417 -> 250610 (#415734) 22e95fb nanovna-saver: 0.6.8 -> 0.7.3 (#415518) 562fcb2 Merge: nextcloud: 30.0.11 -> 30.0.12, 31.0.5 -> 31.0.6 (#416098) 6b74a79 nixos-rebuild-ng: run systemd-run with / as the working directory (#416132) 3018ad2 helmfile: 1.1.1 -> 1.1.2 6f656f2 yafc-ce: 2.11.1 -> 2.13.0 (#415000) 320a9cb go-licence-detector: 0.7.0 -> 0.8.0 85eb8fa fastly: 11.2.0 -> 11.3.0 (#415940) 3f2c473 vscode-extensions.ms-kubernetes-tools.vscode-kubernetes-tools: 1.3.23 -> 1.3.24 (#416136) 86b5a39 trufflehog: 3.89.0 -> 3.89.1 (#415910) 0015082 git-machete: 3.34.1 -> 3.36.0 (#409291) f6b0d7c sums: 0.13 -> 0.15 (#416133) c88e955 fan2go: 0.9.0 -> 0.10.0 8c443ed stalwart-mail: 0.12.2 -> 0.12.4 80cf90d pritunl-client: 1.3.4220.57 -> 1.3.4275.94 (#415816) 1cf88f3 beekeeper-studio: 5.2.9 -> 5.2.12 (#413510) 2d6dbce megasync: 5.9.0.3 -> 5.12.0.1 (#413878) 616387c vault-tasks: 0.11.2 -> 0.12.0 (#414695) 95b70cc drone-cli: 1.8.0 -> 1.9.0 25145ee python3Packages.craft-store: 3.2.1 -> 3.2.2 959cf4c streamripper: fix build 780f0c7 hoppscotch: improve update script (#404828) 1ae214f check-meta: fix 'hasNoMaintainers' a4f2cc0 streamripper: fix build (#415992) b36cd27 t1lib: drop (#416001) 41c7117 fan2go: 0.9.0 -> 0.10.0 (#405283) f6b3452 python3Packages.aioesphomeapi: 30.2.0 -> 32.2.1 (#405130) 3dbb883 python312Packages.datapoint: 0.9.9 -> 0.12.1 5f55217 python3Packages.apsystems-ez1: 2.6.0 -> 2.7.0 1924668 python3Packages.bluetooth-auto-recovery: 1.5.1 -> 1.5.2 f1e80d2 python313Packages.deebot-client: 13.2.1 -> 13.3.0 2e3768e python3Packages.env-canada: 0.10.2 -> 0.11.2 e9c4658 python3Packages.habiticalib: 0.3.7 -> 0.4.0 (#409714) 9364443 python313Packages.habluetooth: 3.48.2 -> 3.49.0 (#413814) 5ac88b8 python3Packages.go2rtc-client: 0.1.2 -> 0.2.1 3897d29 python313Packages.hass-nabucasa: 0.96.0 -> 0.101.0 bfb5f44 python3Packages.hdate: 1.1.0 -> 1.1.1 385226f python3Packages.homematicip: 2.0.1.1 -> 2.0.4 (#407427) fb43cbd python3Packages.lektricowifi: 0.0.43 -> 0.1 2d3a349 python3Packages.mcstatus: 11.1.1 -> 12.0.1 (#406269) 5eed43d python3Packages.py-synologydsm-api: 2.7.2 -> 2.7.3 38c6500 python313Packages.pyatmo: 9.0.0 -> 9.2.1 (#408883) 96f47f3 python313Packages.pypck: 0.8.5 -> 0.8.6 (#401804) 892445e python3Packages.pydrawise: 2025.3.0 -> 2025.6.0 7a34be6 python313Packages.pymiele: 0.4.3 -> 0.5.2 |
||
---|---|---|
.forgejo/workflows | ||
lib | ||
LICENSES | ||
machines | ||
meta | ||
modules | ||
patches | ||
pkgs | ||
scripts | ||
workflows | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
bootstrap.nix | ||
CONTRIBUTE.md | ||
default.nix | ||
hive.nix | ||
keys.nix | ||
lon.lock | ||
lon.nix | ||
README.md | ||
REUSE.toml | ||
shell.nix |
❄️ infrastructure
The dgnum infrastructure.
Contributing
Some instruction on how to contribute are available (in french) in /CONTRIBUTE.md. You're expected to read this document before commiting to the repo.
Some documentation for the development tools are provided in the aforementioned file.
Using the binary cache
Add the following module to your configuration (and pin this repo using your favorite tool: npins, lon, etc...):
{ lib, ... }:
let
dgnum-infra = PINNED_PATH_TO_INFRA;
in {
nix.settings = (import dgnum-infra { }).mkCacheSettings {
caches = [ "infra" ];
};
}
Adding a new machine
The first step is to create a minimal viable NixOS host, using tha means necessary. The second step is to find a name for this host, it must be unique from the other hosts.
Tip
For the rest of this part, we assume that the host is named
host02
Download the keys
The public SSH keys of host02
have to be saved to keys
, preferably only the ssh-ed25519
one.
It can be retreived with :
ssh-keyscan address.of.host02 2>/dev/null | awk '/ssh-ed25519/ {print $2,$3}'
Initialize the machine folder and configuration
- Create a folder
host02
undermachines/
- Copy the hardware configuration file generated by
nixos-generate-config
tomachines/host02/_hardware-configuration.nix
- Create a
machines/host02/_configuration.nix
file, it will contain the main configuration options, the basic content of this file should be the following
{ lib, ... }:
lib.extra.mkConfig {
enabledModules = [
# List of modules to enable
];
enabledServices = [
# List of services to enable
];
extraConfig = {
services.netbird.enable = true;
};
root = ./.;
}
Fill in the metadata
Network configuration
The network is declared in meta/network.nix
, the necessary hostId
value can be generated with :
head -c4 /dev/urandom | od -A none -t x4 | sed 's/ //'
Other details
The general metadata is declared in meta/nodes.nix
, the main values to declare are :
site
, where the node is physically locatedstateVersion
nixpkgs
, the nixpkgs version to use
Initialize secrets
Create the directory secrets
in the configuration folder, and add a secrets.nix
file containing :
(import ../../../keys.nix).mkSecrets [ "host02" ] [
# List of secrets for host02
]
This will be used for future secret management.
Update encrypted files
Both the Arkheon, Netbox and notification modules have secrets that are deployed on all machines. To make those services work correctly, run in modules/dgn-records
, modules/dgn-netbox-agent
and modules/dgn-notify
:
agenix -r
Commit and create a PR
Once all of this is done, check that the configuration builds correctly :
colmena build --on host02
Apply it, and create a Pull Request.