2023-07-15 22:54:03 +01:00
|
|
|
{ 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";
|
2023-07-19 11:59:28 +01:00
|
|
|
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
2023-07-15 22:54:03 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
wget
|
|
|
|
git
|
|
|
|
htop
|
|
|
|
tailscale
|
|
|
|
];
|
|
|
|
|
|
|
|
services.gitea-actions-runner = {
|
2023-07-19 11:59:28 +01:00
|
|
|
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 = "";
|
2023-07-15 22:54:03 +01:00
|
|
|
};
|
|
|
|
};
|
2023-07-19 11:59:28 +01:00
|
|
|
};
|
2023-07-15 22:54:03 +01:00
|
|
|
|
|
|
|
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";
|
|
|
|
}
|