Compare commits

...

2 Commits

4 changed files with 27 additions and 1 deletions

View File

@ -14,6 +14,7 @@
../../modules/ssh.nix
../../modules/endlessh.nix
../../programs/nano.nix
./services
];
system = {

View File

@ -0,0 +1,3 @@
{
imports = [./nextcloud-cron.nix];
}

View File

@ -0,0 +1,22 @@
{pkgs, ...}: {
systemd = {
timers."nextcloud-cron" = {
wantedBy = [""];
timerConfig = {
OnBootSec = "5m";
OnUnitActiveSec = "5m";
Unit = "nextcloud-cron.service";
};
};
services."nextcloud-cron" = {
script = ''
set -eu
${pkgs.docker}/bin/docker exec -u www-data -it nextcloud-nextcloud-1 php /var/www/html/cron.php
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
};
}

View File

@ -71,7 +71,7 @@
swaync = true;
waybar = {
enable = true;
battery = false;
battery = true;
style = ./config/waybar/style.css;
};
};