From f2bcb15c3a91d89ebd1373302d117a7ed0a034ae Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Fri, 15 Aug 2025 04:56:15 +0530 Subject: [PATCH] feat: Update gitea docker image and add systemd timer for nextcloudcmd --- nixos/mirai/mirai.nix | 6 ++++++ nixos/mirai/services/gitea.nix | 5 ++++- steamdeck/default.nix | 19 ++++++++++++++++--- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/nixos/mirai/mirai.nix b/nixos/mirai/mirai.nix index 83e8c5ba..2c4407ac 100644 --- a/nixos/mirai/mirai.nix +++ b/nixos/mirai/mirai.nix @@ -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"; diff --git a/nixos/mirai/services/gitea.nix b/nixos/mirai/services/gitea.nix index 8ea5a327..7f340961 100644 --- a/nixos/mirai/services/gitea.nix +++ b/nixos/mirai/services/gitea.nix @@ -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}"; }; diff --git a/steamdeck/default.nix b/steamdeck/default.nix index 37dbf038..c4f0af44 100644 --- a/steamdeck/default.nix +++ b/steamdeck/default.nix @@ -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"]; }; }; };