feat: Update gitea docker image and add systemd timer for nextcloudcmd
Some checks failed
Flake checker / Build Nix targets (push) Failing after 1m14s
Some checks failed
Flake checker / Build Nix targets (push) Failing after 1m14s
This commit is contained in:
@@ -25,6 +25,12 @@
|
||||
"bind"
|
||||
];
|
||||
};
|
||||
fileSystems."/var/lib/docker" = {
|
||||
device = "/media/docker";
|
||||
options = [
|
||||
"bind"
|
||||
];
|
||||
};
|
||||
|
||||
# fileSystems."/" = {
|
||||
# device = "/dev/disk/by-uuid/8f805d1b-a469-4db8-9ee1-b98ea220714a";
|
||||
|
||||
@@ -79,7 +79,10 @@
|
||||
name = "mirai";
|
||||
url = "https://git.darksailor.dev";
|
||||
labels = [
|
||||
"ubuntu-latest:docker://node:18-bullseye"
|
||||
"ubuntu-latest:docker://catthehacker/ubuntu:full-latest"
|
||||
"ubuntu-22.04:docker://catthehacker/ubuntu:full-22.04"
|
||||
"ubuntu-20.04:docker://catthehacker/ubuntu:full-20.04"
|
||||
"native:host"
|
||||
];
|
||||
tokenFile = "${config.sops.templates."GITEA_REGISTRATION_TOKEN.env".path}";
|
||||
};
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
@@ -24,9 +23,23 @@
|
||||
Description = "Nextcloud Client";
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -n /home/deck/Nextcloud https://cloud.darksailor.dev";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.timers = {
|
||||
nextcloudcmd = {
|
||||
Unit = {
|
||||
Description = "Run Nextcloud Client every 5 minutes";
|
||||
};
|
||||
Timer = {
|
||||
OnCalendar = "*:0/5";
|
||||
Persistent = true;
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["timers.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user