infra/krops/oracle-gitea-runner/configuration.nix
Gabriel Simmer 3ab2dec4ae
All checks were successful
Lint / lint (push) Successful in 9s
Minor tweaks to gitea runners
2023-07-19 11:59:28 +01:00

68 lines
1.4 KiB
Nix

{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "gitea-arm-runner";
networking.domain = "gmem.ca";
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
environment.systemPackages = with pkgs; [
vim
wget
git
htop
tailscale
];
services.gitea-actions-runner = {
instances = {
oracle-arm = {
name = "oracle-arm";
enable = true;
labels = [
"debian-latest-arm:docker://node:18-bullseye"
"arm:host"
];
hostPackages = with pkgs; [
bash
coreutils
curl
gawk
gitMinimal
gnused
nodejs
wget
docker
nix
];
url = "https://vancouver.scorpion-ghost.ts.net/git";
token = "";
};
};
};
programs.zsh.enable = true;
programs.fish.enable = true;
environment.shells = with pkgs; [ zsh fish ];
users.users = {
root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILIztwQxt+jqroFONSgq+xzPMuE2I5Dq/zWPQ8RcTYJr"
];
};
virtualisation = {
docker = {
enable = true;
};
};
services.openssh.enable = true;
services.tailscale.enable = true;
system.stateVersion = "23.05";
}