feat(calculus01): Init
Some checks failed
Check meta / check_dns (push) Successful in 20s
Check meta / check_meta (push) Successful in 20s
Check meta / check_dns (pull_request) Successful in 18s
Check meta / check_meta (pull_request) Successful in 18s
Run pre-commit on all files / pre-commit (push) Successful in 36s
Check workflows / check_workflows (pull_request) Failing after 27s
Build all the nodes / ap01 (pull_request) Successful in 1m20s
Build all the nodes / bridge01 (pull_request) Successful in 2m9s
Build all the nodes / geo02 (pull_request) Successful in 2m20s
Build all the nodes / geo01 (pull_request) Successful in 2m20s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m12s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m56s
Build all the nodes / netcore02 (pull_request) Successful in 38s
Build all the nodes / compute01 (pull_request) Successful in 3m26s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m39s
Build all the nodes / rescue01 (pull_request) Successful in 2m23s
Build all the nodes / storage01 (pull_request) Successful in 2m22s
Build all the nodes / tower01 (pull_request) Successful in 2m6s
Build all the nodes / vault01 (pull_request) Successful in 2m21s
Build the shell / build-shell (pull_request) Successful in 35s
Build all the nodes / web02 (pull_request) Successful in 2m7s
Run pre-commit on all files / pre-commit (pull_request) Successful in 38s
Build all the nodes / web01 (pull_request) Successful in 2m46s
Build all the nodes / web03 (pull_request) Successful in 2m0s
Some checks failed
Check meta / check_dns (push) Successful in 20s
Check meta / check_meta (push) Successful in 20s
Check meta / check_dns (pull_request) Successful in 18s
Check meta / check_meta (pull_request) Successful in 18s
Run pre-commit on all files / pre-commit (push) Successful in 36s
Check workflows / check_workflows (pull_request) Failing after 27s
Build all the nodes / ap01 (pull_request) Successful in 1m20s
Build all the nodes / bridge01 (pull_request) Successful in 2m9s
Build all the nodes / geo02 (pull_request) Successful in 2m20s
Build all the nodes / geo01 (pull_request) Successful in 2m20s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m12s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m56s
Build all the nodes / netcore02 (pull_request) Successful in 38s
Build all the nodes / compute01 (pull_request) Successful in 3m26s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m39s
Build all the nodes / rescue01 (pull_request) Successful in 2m23s
Build all the nodes / storage01 (pull_request) Successful in 2m22s
Build all the nodes / tower01 (pull_request) Successful in 2m6s
Build all the nodes / vault01 (pull_request) Successful in 2m21s
Build the shell / build-shell (pull_request) Successful in 35s
Build all the nodes / web02 (pull_request) Successful in 2m7s
Run pre-commit on all files / pre-commit (pull_request) Successful in 38s
Build all the nodes / web01 (pull_request) Successful in 2m46s
Build all the nodes / web03 (pull_request) Successful in 2m0s
This commit is contained in:
parent
3c9c38fb03
commit
6f01ebf017
6 changed files with 117 additions and 0 deletions
|
@ -20,6 +20,7 @@ rec {
|
|||
_keys = {
|
||||
# SSH keys of the nodes
|
||||
bridge01 = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP5bS3iBXz8wycBnTvI5Qi79WLu0h4IVv/EOdKYbP5y7" ];
|
||||
calculus01 = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOaM9jj5xu9CfHAuRM6cQ0gz594izlYQWrErgIVut5sN" ];
|
||||
compute01 = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE/YluSVS+4h3oV8CIUj0OmquyJXju8aEQy0Jz210vTu" ];
|
||||
geo01 = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEl6Pubbau+usQkemymoSKrTBbrX8JU5m5qpZbhNx8p4" ];
|
||||
geo02 = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFNXaCS0/Nsu5npqQk1TP6wMHCVIOaj4pblp2tIg6Ket" ];
|
||||
|
|
17
machines/nixos/calculus01/_configuration.nix
Normal file
17
machines/nixos/calculus01/_configuration.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
# SPDX-FileCopyrightText: 2025 Elias Coppens <elias@dgnum.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
{ lib, ... }:
|
||||
|
||||
lib.extra.mkConfig {
|
||||
enabledModules = [ ];
|
||||
|
||||
enabledServices = [ ];
|
||||
|
||||
extraConfig = {
|
||||
services.netbird.enable = true;
|
||||
};
|
||||
|
||||
root = ./.;
|
||||
}
|
54
machines/nixos/calculus01/_hardware-configuration.nix
Normal file
54
machines/nixos/calculus01/_hardware-configuration.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
"megaraid_sas"
|
||||
"ehci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
kernelModules = [ "dm-snapshot" ];
|
||||
};
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/388ea788-8c13-4a6f-873f-502e2b6dd528";
|
||||
fsType = "xfs";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/1372-46EA";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0022"
|
||||
"dmask=0022"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/34b9e0ab-c579-4293-849c-78f5093cf35a"; }
|
||||
];
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
7
machines/nixos/calculus01/secrets/secrets.nix
Normal file
7
machines/nixos/calculus01/secrets/secrets.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
# SPDX-FileCopyrightText: 2025 La Délégation Générale Numérique <contact@dgnum.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
(import ../../../../keys).mkSecrets [ "calculus01" ] [
|
||||
|
||||
]
|
|
@ -13,6 +13,25 @@
|
|||
netbirdIp = null;
|
||||
};
|
||||
|
||||
calculus01 = {
|
||||
interfaces = {
|
||||
enp35s0f0np0 = {
|
||||
ipv4 = [
|
||||
{
|
||||
address = "10.0.254.21";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
|
||||
gateways = [ "10.0.254.1" ];
|
||||
enableDefaultDNS = true;
|
||||
};
|
||||
};
|
||||
|
||||
hostId = "adb676ce";
|
||||
netbirdIp = "100.80.21.38";
|
||||
};
|
||||
|
||||
compute01 = {
|
||||
interfaces = {
|
||||
eno1 = {
|
||||
|
|
|
@ -49,6 +49,25 @@
|
|||
};
|
||||
};
|
||||
|
||||
calculus01 = {
|
||||
site = "pot01";
|
||||
|
||||
hashedPassword = "$y$j9T$n83qOn1OkQhFwQe50tPM11$jZ1tvgqMTcp4HLGEfJmTMsf0NnRUYQkzco9vibWTpU2";
|
||||
|
||||
stateVersion = "24.11";
|
||||
|
||||
nixpkgs = {
|
||||
version = "24.11";
|
||||
system = "nixos";
|
||||
};
|
||||
|
||||
admins = [ "ecoppens" ];
|
||||
|
||||
deployment = {
|
||||
targetHost = "calculus01.dgnum";
|
||||
};
|
||||
};
|
||||
|
||||
compute01 = {
|
||||
site = "pav01";
|
||||
|
||||
|
|
Loading…
Reference in a new issue