-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathgithub-agent-runner.nix
More file actions
63 lines (62 loc) · 1.32 KB
/
Copy pathgithub-agent-runner.nix
File metadata and controls
63 lines (62 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
pkgs,
config,
makeEnable,
...
}:
makeEnable config "myModules.githubAgentRunner" false {
age.secrets.github-rocket-sense-runner-token = {
file = ./secrets/github-rocket-sense-runner-token.age;
mode = "0400";
};
services.github-runners.rocket-sense-agent = {
enable = true;
url = "https://github.com/rlrml/rocket-sense";
name = "${config.networking.hostName}-rocket-sense-agent";
tokenFile = config.age.secrets.github-rocket-sense-runner-token.path;
tokenType = "registration";
replace = true;
ephemeral = false;
user = "imalison";
extraLabels = [
"rocket-sense-agent"
"nixos"
"codex"
"claude-code"
];
extraPackages = with pkgs; [
bashInteractive
cargo
claude-code
codex
coreutils
curl
direnv
gh
git-lfs
gitFull
gnugrep
gnused
jq
just
nixVersions.stable
nodejs
openssh
pkg-config
ripgrep
rustc
zsh
];
extraEnvironment = {
CODEX_HOME = "/home/imalison/.codex";
NIX_CONFIG = "experimental-features = nix-command flakes";
};
serviceOverrides = {
ProtectHome = false;
ProtectSystem = "full";
PrivateTmp = false;
PrivateUsers = false;
RestrictNamespaces = false;
};
};
}