fix check workflow

This commit is contained in:
Joakim Repomaa
2026-02-20 18:58:55 +02:00
parent 45ce478dd4
commit a41c885bb2
3 changed files with 41 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ on:
branches: [main] branches: [main]
jobs: jobs:
build: check:
runs-on: nixos-latest runs-on: nixos-latest
steps: steps:
@@ -16,5 +16,3 @@ jobs:
- name: Check - name: Check
run: nix flake check run: nix flake check
env:
NIX_CONFIG: "experimental-features = nix-command flakes"

View File

@@ -68,6 +68,7 @@
... ...
}@inputs: }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } ( flake-parts.lib.mkFlake { inherit inputs; } (
{ withSystem, ... }:
let let
ssh.publicKeys = { ssh.publicKeys = {
yubikey = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLIUkESu5NnBi1M0+ZjYrkp6/rIFuwc3aguspf98jmOydNce6l65cnS3GRzc9oWx4lu11ahi87ZuE+pYV+gaHm4="; yubikey = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLIUkESu5NnBi1M0+ZjYrkp6/rIFuwc3aguspf98jmOydNce6l65cnS3GRzc9oWx4lu11ahi87ZuE+pYV+gaHm4=";
@@ -124,6 +125,44 @@
}; };
images.turny = self.nixosConfigurations.turny.config.system.build.sdImage; images.turny = self.nixosConfigurations.turny.config.system.build.sdImage;
dockerImages =
nixpkgs.lib.genAttrs
[
"x86_64-linux"
"aarch64-linux"
]
(
system:
withSystem system (
{ pkgs, ... }:
{
node = pkgs.dockerTools.buildImage {
name = "node";
tag = "latest";
runAsRoot = ''
#!${pkgs.stdenv.shell}
set -e
${pkgs.dockerTools.shadowSetup}
groupadd -r node
useradd -r -g node node
'';
copyToRoot = pkgs.buildEnv {
name = "image-root";
pathsToLink = [ "/" ];
paths = with pkgs; [
nodejs
nix
busybox
];
};
config.Env = [
"NIX_CONFIG=experimental-features = nix-command flakes"
];
};
}
)
);
colmenaHive = colmena.lib.makeHive self.outputs.colmena; colmenaHive = colmena.lib.makeHive self.outputs.colmena;
colmena = colmena =

View File

@@ -451,7 +451,7 @@ in
labels = [ labels = [
"linux_arm64" "linux_arm64"
"ubuntu-latest:docker://node:latest" "ubuntu-latest:docker://node:latest"
"nixos-latest:docker://nixos/nix:latest" "nixos-latest:docker://repomaa/node:latest"
]; ];
tokenFile = secrets.gitea-actions-runner.path; tokenFile = secrets.gitea-actions-runner.path;
url = "https://${config.services.gitea.subdomain}.${config.networking.domain}"; url = "https://${config.services.gitea.subdomain}.${config.networking.domain}";