Compare commits

...
2 Commits
Author SHA1 Message Date
hektor b6c5ae9089 ci: set up basic Nix host pipeline
build / hecuba (push) Failing after 34s
2026-07-28 01:05:01 +02:00
hektor f984d894fc feat(hecuba): declare gitea actions runner 2026-07-28 01:05:01 +02:00
3 changed files with 41 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
name: build
on:
pull_request:
push:
branches: [main]
jobs:
hecuba:
runs-on: nix
steps:
- uses: actions/checkout@v4
- run: nix eval .#nixosConfigurations.hecuba.config.system.build.toplevel.drvPath
- run: nix build .#nixosConfigurations.hecuba.config.system.build.toplevel --print-build-logs
Generated
+6 -6
View File
@@ -427,10 +427,10 @@
"url": "ssh://git@github.com/hektor/hecuba-services" "url": "ssh://git@github.com/hektor/hecuba-services"
}, },
"original": { "original": {
"type": "git",
"url": "ssh://git@github.com/hektor/hecuba-services",
"ref": "main", "ref": "main",
"shallow": true "shallow": true,
"type": "git",
"url": "ssh://git@github.com/hektor/hecuba-services"
} }
}, },
"home-manager": { "home-manager": {
@@ -496,10 +496,10 @@
"nix-secrets": { "nix-secrets": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1783872092, "lastModified": 1785190089,
"narHash": "sha256-Lg4kvJw3BxjeBEszQ9n1H+Oj/30u3N9N+TAwbmKhDPY=", "narHash": "sha256-nhzJq5kkcU9X5QXhErn1pHqqN5TPxUVV0teOd+yMzN4=",
"ref": "main", "ref": "main",
"rev": "1900322e9ddd920986c5b31ef161fd1c3f977846", "rev": "3375f7a8ccb4dc3c5ea3c488597c659665973e4d",
"shallow": true, "shallow": true,
"type": "git", "type": "git",
"url": "ssh://git@github.com/hektor/nix-secrets" "url": "ssh://git@github.com/hektor/nix-secrets"
+22
View File
@@ -28,6 +28,28 @@ in
ssh.enable = true; ssh.enable = true;
tailscale.enable = true; tailscale.enable = true;
secrets.hecuba-gitea-runner = [ "registration_token" ];
sops.templates."gitea-runner.env".content = ''
TOKEN=${config.sops.placeholder."hecuba-gitea-runner/registration_token"}
'';
services.gitea-actions-runner.instances.hecuba = {
enable = true;
name = "hecuba";
url = "https://git.hektormisplon.xyz";
tokenFile = config.sops.templates."gitea-runner.env".path;
labels = [ "nix:host" ];
hostPackages = with pkgs; [
bash
coreutils
git
nix
nodejs
openssh
];
};
virtualisation.arion.backend = "docker"; virtualisation.arion.backend = "docker";
networking.hostName = config.host.name; networking.hostName = config.host.name;