From e298375eee968df34498a770f2e08f6355d8ea65 Mon Sep 17 00:00:00 2001 From: Samuel Shuert Date: Fri, 26 Sep 2025 00:57:23 +0000 Subject: [PATCH] feat(pm/teal): Make auto-update service for patisserie Change-Id: rzqluqvlvvzllkpzszzwtvrvmqymllpk Tangled.sh doesn't currently support cron tasks so we will use this as a stopgap until it does --- .../systems/teal/patisserie-autoupdate.nix | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packetmix/systems/teal/patisserie-autoupdate.nix diff --git a/packetmix/systems/teal/patisserie-autoupdate.nix b/packetmix/systems/teal/patisserie-autoupdate.nix new file mode 100644 index 00000000..afc7279e --- /dev/null +++ b/packetmix/systems/teal/patisserie-autoupdate.nix @@ -0,0 +1,20 @@ +{ pkgs }: { + systemd.services."patisserie-autoupdate" = { + startAt = "00:00:00"; + script = let + jj = "${pkgs.jujutsu}/bin/jj"; + npins = "${pkgs.npins}/bin/npins"; + in '' + GIT_SSH_COMMAND="ssh -i /etc/ssh/ssh_host_ed25519_key" + ${jj} git fetch + ${jj} new main@origin + ${npins} update + ${jj} desc -m "chore(packetmix): Auto update packages" + ${jj} bookmark s auto/npins-update + ${jj} git push --force + ''; + serviceConfig.WorkingDirectory = "/root/patisserie"; + }; + + clicks.storage.impermanance.persist.directories = [ "/root/patisserie" ]; +} -- 2.43.0