mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat: distributed builder on sumireko, "renko" for x86_64-linux
This commit is contained in:
parent
0ec547ab6a
commit
259b2338eb
5 changed files with 109 additions and 5 deletions
|
|
@ -8,6 +8,9 @@
|
||||||
ci.flake = inputs.ci;
|
ci.flake = inputs.ci;
|
||||||
};
|
};
|
||||||
package = pkgs.nixUnstable;
|
package = pkgs.nixUnstable;
|
||||||
|
binaryCaches = [ "https://arc.cachix.org" "https://kittywitch.cachix.org" "https://nix-community.cachix.org" ];
|
||||||
|
binaryCachePublicKeys =
|
||||||
|
[ "arc.cachix.org-1:DZmhclLkB6UO0rc0rBzNpwFbbaeLfyn+fYccuAy7YVY=" "kittywitch.cachix.org-1:KIzX/G5cuPw5WgrXad6UnrRZ8UDr7jhXzRTK/lmqyK0=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" ];
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,52 @@
|
||||||
darwin.base
|
darwin.base
|
||||||
darwin.kat
|
darwin.kat
|
||||||
];
|
];
|
||||||
|
|
||||||
security.pam.enableSudoTouchIdAuth = true;
|
security.pam.enableSudoTouchIdAuth = true;
|
||||||
|
|
||||||
|
home-manager.users.root.programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
matchBlocks = {
|
||||||
|
"daiyousei-build" = {
|
||||||
|
hostname = "daiyousei.kittywit.ch";
|
||||||
|
port = 62954;
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
"renko-build" = {
|
||||||
|
hostname = "192.168.64.3";
|
||||||
|
port = 62954;
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
envVars = {
|
||||||
|
"SSH_AUTH_SOCK" = "/Users/kat/.gnupg/S.gpg-agent.ssh";
|
||||||
|
};
|
||||||
|
buildMachines = [
|
||||||
|
{
|
||||||
|
hostName = "renko-build";
|
||||||
|
sshUser = "root";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
maxJobs = 100;
|
||||||
|
speedFactor = 1;
|
||||||
|
supportedFeatures = [ "benchmark" "big-parallel" "kvm" ];
|
||||||
|
mandatoryFeatures = [ ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
hostName = "daiyousei-build";
|
||||||
|
sshUser = "root";
|
||||||
|
system = "aarch64-linux";
|
||||||
|
maxJobs = 100;
|
||||||
|
speedFactor = 1;
|
||||||
|
supportedFeatures = [ "benchmark" "big-parallel" "kvm" ];
|
||||||
|
mandatoryFeatures = [ ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
distributedBuilds = true;
|
||||||
|
};
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
brewPrefix = "/opt/homebrew/bin";
|
brewPrefix = "/opt/homebrew/bin";
|
||||||
casks = [
|
casks = [
|
||||||
|
|
@ -18,11 +61,12 @@
|
||||||
"utm"
|
"utm"
|
||||||
"mullvadvpn"
|
"mullvadvpn"
|
||||||
"bitwarden"
|
"bitwarden"
|
||||||
];
|
"gimp"
|
||||||
masApps = {
|
];
|
||||||
Tailscale = 1475387142;
|
masApps = {
|
||||||
|
Tailscale = 1475387142;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
terraform
|
terraform
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
# task managers
|
||||||
|
htop
|
||||||
|
btop
|
||||||
# disk usage
|
# disk usage
|
||||||
duc-cli
|
duc-cli
|
||||||
# nix formatting
|
# nix formatting
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
supportedLocales = [
|
supportedLocales = [
|
||||||
"en_CA.UTF-8/UTF-8"
|
"en_CA.UTF-8/UTF-8"
|
||||||
"en_GB.UTF-8/UTF-8"
|
"en_GB.UTF-8/UTF-8"
|
||||||
|
"en_US.UTF-8/UTF-8"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
console = {
|
console = {
|
||||||
|
|
|
||||||
53
nixos/systems/renko.nix
Normal file
53
nixos/systems/renko.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
deploy.tf = {
|
||||||
|
resources.renko = {
|
||||||
|
provider = "null";
|
||||||
|
type = "resource";
|
||||||
|
connection = {
|
||||||
|
port = builtins.head config.services.openssh.ports;
|
||||||
|
host = "192.168.64.3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
initrd = {
|
||||||
|
availableKernelModules = [ "ehci_pci" "uhci_hcd" "ahci" "usbhid" "sd_mod" "sr_mod" ];
|
||||||
|
kernelModules = [ ];
|
||||||
|
};
|
||||||
|
kernelModules = [ "kvm-amd" ];
|
||||||
|
extraModulePackages = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" = {
|
||||||
|
device = "/dev/disk/by-uuid/a4b4dea9-dd55-4055-9c98-49349ec43e5c";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/957B-56F1";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/dev/disk/by-uuid/59399595-6a74-480c-b98c-e356761c0861"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault false;
|
||||||
|
|
||||||
|
system.stateVersion = "22.05";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue