nixos-config/modules/nixos/shared/github-runner.nix
2025-01-19 13:15:21 -05:00

33 lines
651 B
Nix

{ flake, pkgs, ... }:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
imports = [
inputs.github-nix-ci.nixosModules.default
];
nix.gc = {
automatic = true;
};
services.github-nix-ci = {
age.secretsDir = self + /secrets;
runnerSettings = {
extraPackages = with pkgs; [
omnix
just
sd
nushell # https://github.com/marketplace/actions/setup-nu
];
};
# Don't forget to add these repos here:
# https://github.com/settings/personal-access-tokens/3513625
personalRunners = {
"srid/nixos-config".num = 1;
"srid/heist-extra".num = 1;
};
};
}