From ca89fcb926e659e17f78ba8126ef9f8871de4060 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Sun, 12 Oct 2025 21:10:52 +0000 Subject: [PATCH] style: format with treefmt Change-Id: mtkwrpxuxmqputxlmosuwvovouwpvnwy Now that we've got a system which properly evaluates and builds again, let's format it so all our CI passes --- packetmix/packages/bluesky-pds/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packetmix/packages/bluesky-pds/default.nix b/packetmix/packages/bluesky-pds/default.nix index fc1bfbfd..d57b1165 100644 --- a/packetmix/packages/bluesky-pds/default.nix +++ b/packetmix/packages/bluesky-pds/default.nix @@ -87,9 +87,7 @@ atproto_pds_dir=$(${findutils}/bin/find node_modules/.pnpm -maxdepth 1 -name "@atproto+pds@*") rm -r $atproto_pds_dir mkdir -p $atproto_pds_dir - ln -s ${ - config.packages.bluesky-atproto-pds.result.${system} - }/lib $atproto_pds_dir/node_modules + ln -s ${config.packages.bluesky-atproto-pds.result.${system}}/lib $atproto_pds_dir/node_modules ''; }; }; -- 2.43.0 From e605d5bf31ccca1b1486b88d8e6b83ff9d130bf7 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Mon, 13 Oct 2025 08:35:59 +0000 Subject: [PATCH] feat(umber): automatically shutdown Change-Id: yvoumtqqwstzlmkpnkptxpzwypkpnysl The power to umber turns off at midnight. Therefore, we should shut it down beforehand to make sure it shuts down cleanly --- packetmix/systems/umber/auto-shutdown.nix | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packetmix/systems/umber/auto-shutdown.nix diff --git a/packetmix/systems/umber/auto-shutdown.nix b/packetmix/systems/umber/auto-shutdown.nix new file mode 100644 index 00000000..83eb641c --- /dev/null +++ b/packetmix/systems/umber/auto-shutdown.nix @@ -0,0 +1,26 @@ +# SPDX-FileCopyrightText: 2025 FreshlyBakedCake +# +# SPDX-License-Identifier: MIT + +{ pkgs, ... }: +{ + systemd.timers."auto-shutdown" = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnCalendar = "* *-*-* 23:55:00 Etc/UTC"; + Persistent = false; + Unit = "auto-shutdown.service"; + }; + }; + + systemd.services."auto-shutdown" = { + script = '' + ${pkgs.systemd}/bin/systemctl poweroff + ''; + serviceConfig = { + RemainAfterExit = true; + Type = "oneshot"; + User = "root"; + }; + }; +} -- 2.43.0 From 19596e2a4c09fd5e735a978d6ff46bd10509b45d Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Mon, 13 Oct 2025 08:40:00 +0000 Subject: [PATCH] ci: correct build workflow IP Change-Id: kptymkwrqukoluoxtnvpyouzkqukyupr This IP was changed in the release and treefmt workflows, but we missed it in the build workflow --- .tangled/workflows/packetmix-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tangled/workflows/packetmix-build.yml b/.tangled/workflows/packetmix-build.yml index 1792d853..1771614f 100644 --- a/.tangled/workflows/packetmix-build.yml +++ b/.tangled/workflows/packetmix-build.yml @@ -21,7 +21,7 @@ steps: - name: Add base system files command: | # Let us SSH to midnight by name - echo "192.168.0.6 midnight" >> /etc/hosts + echo "192.168.1.2 midnight" >> /etc/hosts # Avoid missing user with UID 0 error on ssh... echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd -- 2.43.0