Move gitea-actions-runner.nix

Also remove any unneeded references to outputs.nixosModules.
This commit is contained in:
Oliver Davies 2025-08-18 12:00:00 +01:00
parent 403a93f951
commit a0575bdb2a
9 changed files with 32 additions and 92 deletions

View file

@ -1,6 +0,0 @@
{
imports = [
./gitea-actions-runner.nix
./podman.nix
];
}

View file

@ -1,50 +0,0 @@
{
config,
inputs,
lib,
pkgs,
...
}:
with lib;
let
cfg = homelab.services.${service};
homelab = config.homelab;
service = "gitea-actions-runner";
in
{
options.homelab.services.${service} = {
enable = mkEnableOption "Enable ${service}";
};
config = mkIf cfg.enable {
services.${service}.instances.default = {
enable = true;
hostPackages = with pkgs; [
bash
coreutils
curl
gawk
gitMinimal
gnused
nix
nodejs
wget
];
labels = [
"nixos:host"
];
name = config.networking.hostName;
tokenFile = config.age.secrets.forgejo-runner-token.path;
url = config.services.forgejo.settings.server.ROOT_URL;
};
age.secrets = {
forgejo-runner-token.file = "${inputs.self}/secrets/forgejo-runner-token.age";
};
};
}

View file

@ -1,25 +0,0 @@
{ config, lib, ... }:
with lib;
let
cfg = config.features.cli.podman;
in
{
options.features.cli.podman.enable = mkEnableOption "Enable podman";
config = mkIf cfg.enable {
virtualisation = {
oci-containers.backend = "podman";
podman = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
};
};
}