mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19: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
|
|
@ -9,6 +9,7 @@
|
|||
supportedLocales = [
|
||||
"en_CA.UTF-8/UTF-8"
|
||||
"en_GB.UTF-8/UTF-8"
|
||||
"en_US.UTF-8/UTF-8"
|
||||
];
|
||||
};
|
||||
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