Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump to nixos-24.05, add monitoring-0 VPS, add buildbot-nix-0 #143

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,22 @@ nix run .#deploy-linux-builder-01 switch
```
nix run .#turn-readiness-check
```

### Bind refuses to start after an update

The error message

```
journal rollforward failed: journal out of sync with zone
```

This can be fixed by removing the journal files.

Upon connection via SSH (`nix run .\#ssh-dweb-reverse-tls-proxy
`):

```shell
systemctl stop bind
rm /etc/bind/zones/infra.holochain.org.zone.jnl
systemctl start bind
```
109 changes: 61 additions & 48 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "The new, performant, and simplified version of Holochain on Rust (sometimes called Holochain RSM for Refactored State Model) ";

inputs = {
nixpkgs.follows = "nixpkgs-23-11";
nixpkgs.follows = "nixpkgs-24-05";
nixpkgs-23-11 = {url = "github:nixos/nixpkgs/nixos-23.11";};
nixpkgs-24-05 = {url = "github:nixos/nixpkgs/nixos-24.05";};
nixpkgsNix.follows = "nixpkgs-24-05";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
config,
inputs,
self,
pkgs,
lib,
...
}: {
imports = [
inputs.disko.nixosModules.disko
inputs.srvos.nixosModules.server
inputs.srvos.nixosModules.hardware-hetzner-online-amd
inputs.srvos.nixosModules.roles-nix-remote-builder
self.nixosModules.holo-users
self.nixosModules.nix-build-distributor

inputs.sops-nix.nixosModules.sops

../../nixos/shared.nix
../../nixos/shared-nix-settings.nix
../../nixos/shared-linux.nix
];

system.stateVersion = "24.05";

passthru = {
hostName = "buildbot-nix-0";
primaryIpv4 = "135.181.114.173";
primaryIpv6 = "2a01:4f9:4b:1a93::1/64";
};

networking.hostName = config.passthru.hostName; # Define your hostname.

hostName = "${config.passthru.hostName}.${(builtins.elemAt (builtins.attrValues self.nixosConfigurations.dweb-reverse-tls-proxy.config.services.bind.zones) 0).name}";

nix.settings.max-jobs = 16;

boot.loader.grub = {
efiSupport = false;
};
# boot.loader.systemd-boot.enable = true;
# boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;

systemd.network.networks."10-uplink".networkConfig.Address = config.passthru.primaryIpv6;

disko.devices = let
disk = id: {
type = "disk";
device = "/dev/${id}";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
mdadm = {
size = "100%";
content = {
type = "mdraid";
name = "raid0";
};
};
};
};
};
in {
disk = {
sda = disk "nvme0n1";
sdb = disk "nvme1n1";
};
mdadm = {
raid0 = {
type = "mdadm";
level = 0;
content = {
type = "gpt";
partitions = {
primary = {
size = "100%";
content = {
type = "btrfs";
extraArgs = ["-f"]; # Override existing partition
subvolumes = {
# Subvolume name is different from mountpoint
"/rootfs" = {
mountpoint = "/";
};
"/nix" = {
mountOptions = ["noatime"];
mountpoint = "/nix";
};
};
};
};
};
};
};
};
};

roles.nix-remote-builder.schedulerPublicKeys = [
# TODO
];
}
14 changes: 14 additions & 0 deletions modules/flake-parts/nixosConfigurations.buildbot-nix-0/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
self,
lib,
inputs,
...
}: let
evaluatedSystem = inputs.nixpkgs.lib.nixosSystem {
modules = [./configuration.nix];
system = "x86_64-linux";
specialArgs = self.specialArgs;
};
in {
flake.nixosConfigurations."${evaluatedSystem.config.passthru.hostName}" = evaluatedSystem;
}
Loading