This commit is contained in:
Sandro - 2024-04-13 15:14:17 +02:00
parent 8e2718f443
commit 6c3a02220d
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
3 changed files with 20 additions and 17 deletions

View File

@ -1,7 +1,10 @@
{ config, lib, pkgs, ... }:
{
c3d2.hq.statistics.enable = true;
c3d2.deployment.server = "server10";
c3d2 = {
deployment.server = "server10";
hq.statistics.enable = true;
};
microvm = {
mem = 8 * 1024;
vcpu = 8;

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
let
cfg = config.services.gitea-actions;
in {
@ -6,7 +6,7 @@ in {
config.systemd.services = lib.genAttrs (builtins.genList (n: "gitea-runner-nix${builtins.toString n}-token") cfg.numInstances) (name: {
wantedBy = [ "multi-user.target" ];
after =lib.optional config.services.gitea.enable "gitea.service";
after = lib.optional config.services.gitea.enable "gitea.service";
unitConfig.ConditionPathExists = [ "!/var/lib/gitea-registration/${name}" ];
script = ''
set -euo pipefail

View File

@ -3,7 +3,7 @@ let
cfg = config.services.gitea-actions;
storeDeps = pkgs.buildEnv {
name = "store-deps";
paths = ((with pkgs; [
paths = (with pkgs; [
bash
cacert
coreutils
@ -16,7 +16,7 @@ let
nix
nodejs
openssh
]) ++ cfg.storeDependencies);
]) ++ cfg.storeDependencies;
};
in {
options = {
@ -102,11 +102,11 @@ in {
tar -cv . | podman import - gitea-runner-nix
'';
path = [
path = with pkgs; [
config.virtualisation.podman.package
pkgs.getent
pkgs.gnutar
pkgs.shadow
getent
gnutar
shadow
];
serviceConfig = {