Move NixOS switches to SSH runners
This commit is contained in:
@@ -80,30 +80,5 @@
|
||||
"d /mnt/yandex 0755 ada users - -"
|
||||
];
|
||||
|
||||
services.gitea-actions-runner.instances."cloud-pc" = {
|
||||
enable = true;
|
||||
name = "cloud-pc";
|
||||
url = "https://git.ada-dev.ru";
|
||||
tokenFile = "/etc/gitea-runner/cloud-pc.token";
|
||||
labels = [ "cloud-pc" "cloud-pc-nixos" ];
|
||||
};
|
||||
|
||||
systemd.services."gitea-runner-cloud-pc".serviceConfig = {
|
||||
SupplementaryGroups = [ "docker" ];
|
||||
Environment = [ "PATH=/run/current-system/sw/bin:/bin" ];
|
||||
};
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "gitea-runner" ];
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/nixos-rebuild";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
|
||||
@@ -75,30 +75,5 @@
|
||||
}
|
||||
'';
|
||||
|
||||
services.gitea-actions-runner.instances."mini-pc" = {
|
||||
enable = true;
|
||||
name = "mini-pc";
|
||||
url = "https://git.ada-dev.ru";
|
||||
tokenFile = "/etc/gitea-runner/mini-pc.token";
|
||||
labels = [ "mini-pc" "mini-pc-nixos" ];
|
||||
};
|
||||
|
||||
systemd.services."gitea-runner-mini-pc".serviceConfig = {
|
||||
SupplementaryGroups = [ "docker" ];
|
||||
Environment = [ "PATH=/run/current-system/sw/bin:/bin" ];
|
||||
};
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "gitea-runner" ];
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/nixos-rebuild";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user