59 lines
1.3 KiB
Nix
59 lines
1.3 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";
|
||
|
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"
|
||
|
];
|
||
|
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;
|
||
|
rootless = {
|
||
|
enable = true;
|
||
|
setSocketVariable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.openssh.enable = true;
|
||
|
services.tailscale.enable = true;
|
||
|
system.stateVersion = "23.05";
|
||
|
}
|