Compare commits

..

3 commits

Author SHA1 Message Date
Jermeiah S
0fa99255f7
init: create forgejo-runner
Some checks are pending
/ test (push) Waiting to run
2025-06-19 16:54:49 -04:00
Jermeiah S
cebf78694b
rename base-image to base 2025-06-19 16:54:33 -04:00
Jermeiah S
92b0df5a3d
disable workflow (temp) 2025-06-19 16:53:41 -04:00
3 changed files with 62 additions and 5 deletions

View file

@ -3,6 +3,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check .
# - uses: DeterminateSystems/nix-installer-action@main
# - uses: DeterminateSystems/magic-nix-cache-action@main
# - run: nix flake check .
- run: echo hi

View file

@ -12,7 +12,7 @@ in
{
imports = [
self.nixosModules.default
"${modulesPath}/virtualisation/lxc-container.nix"
# "${modulesPath}/virtualisation/lxc-container.nix"
];
deploy = {
enable = false;
@ -22,7 +22,7 @@ in
};
networking = {
hostName = "tofu";
hostName = "base";
};
environment.systemPackages = [
];

View file

@ -0,0 +1,56 @@
{
flake,
modulesPath,
config,
pkgs,
...
}:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
imports = [
self.nixosModules.default
"${modulesPath}/virtualisation/lxc-container.nix"
];
nix.settings = {
allowed-users = [ "gitea-runner" ];
trusted-users = [ "gitea-runner" ];
};
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances = {
native = {
enable = true;
url = "https://git.skdevstuios.com";
name = "nix";
labels = [ "native:host" ];
tokenFile = config.sops.secrets.forgejo-runners-token.path;
hostPackages = with pkgs; [
nix
nodejs
git
bash
coreutils
curl
];
};
};
};
deploy = {
enable = false;
};
services = {
tty-ips.enable = true;
};
networking = {
hostName = "base";
};
environment.systemPackages = [
];
system.stateVersion = "25.05";
}