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

41 lines
897 B
Nix

{
config,
lib,
pkgs,
...
}:
{
systemd.timers."nextcloud-pre-generate" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = 600;
OnUnitActiveSec = 600;
Unit = "nextcloud-pre-generate.service";
};
};
systemd.services."nextcloud-pre-generate" = {
requires = [
"docker-nextcloud.service"
];
after = [
"docker-nextcloud.service"
];
description = "incremental pre-generation of previews on nextcloud";
serviceConfig = {
Type = "oneshot";
DynamicUser = "yes";
Group = "docker";
ExecStart = [
''
${pkgs.bash}/bin/bash -c '${pkgs.docker}/bin/docker ps --format "{{.Names}}" | ${pkgs.gnugrep}/bin/grep -q "^nextcloud$"'
''
''
${pkgs.docker}/bin/docker exec --user www-data nextcloud php occ preview:pre-generate
''
];
};
};
}