ahuston-0 d9a3d31b5b
Some checks failed
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Waiting to run
Check flake.lock / Check health of `flake.lock` (push) Waiting to run
Check Nix formatting / Perform Nix format checks (push) Waiting to run
Update flakes / createPullRequest (push) Failing after 3h11m57s
artemsion: samba, flakpak, palatine-hill: act-runner, samba, nextcloud
- adds happy 17th AO3 skin
- removes zen kernel from artemision
- adds flatpak to artemision
- adds samba client to artemision
- add samba import for palatine-hill
- fix formatting on act-runner
- fix nextcloud pre-generation script to use new image scheme

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-12-04 18:56:39 -05:00

63 lines
1.6 KiB
Nix

{
config,
...
}:
let
vars = import ../vars.nix;
act_path = vars.primary_act;
in
{
virtualisation.oci-containers.containers.act-stable-latest-1 = {
image = "gitea/act_runner:latest";
extraOptions = [
"--stop-signal=SIGINT"
];
labels = {
"com.centurylinklabs.watchtower.enable" = "true";
"com.centurylinklabs.watchtower.scope" = "act-runner";
};
volumes = [
"${act_path}/stable-latest-1/config.yaml:/config.yaml"
"${act_path}/stable-latest-1/data:/data"
"/var/run/docker.sock:/var/run/docker.sock"
];
environment = {
CONFIG_FILE = "/config.yaml";
GITEA_RUNNER_NAME = "stable-latest-1";
};
environmentFiles = [ config.sops.secrets."docker/act-runner".path ];
log-driver = "local";
};
systemd = {
timers."custom-watchtower@act-runner" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "20m";
OnUnitActiveSec = "5m";
Unit = "custom-watchtower@act-runner.service";
};
};
services."custom-watchtower@act-runner" = {
bindsTo = [ "docker.service" ];
after = [ "docker.service" ];
description = "a watchtower-esque script for systemd-based oci-containers";
serviceConfig = {
Type = "oneshot";
User = "root";
ExecStart = "${config.nix.package}/bin/nix ${./watchtower.bash} 'com.centurylinklabs.watchtower.scope' 'act-runner'";
};
};
};
sops.secrets = {
"docker/act-runner" = {
owner = "root";
restartUnits = [
"docker-act-stable-latest-1.service"
];
};
};
}