From 00abeeec21b56cb47969c47c390f3a24623ad852 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Sat, 14 Feb 2026 12:48:04 -0700 Subject: [PATCH] Update makefile --- Makefile | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 82bfe1d..5be0ed0 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,4 @@ -.PHONY: help certs switch +.PHONY: lock -help: - @grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' - -switch: - sudo nixos-rebuild switch --flake .#haschel - -certs: - @for unit in $$(systemctl list-units 'acme-order-renew-*' --all --plain --no-legend --state=inactive --state=failed | awk '{print $$1}'); do \ - domain=$$(echo "$$unit" | sed 's/acme-order-renew-//;s/\.service//'); \ - if [ ! -f "/var/lib/acme/$$domain/fullchain.pem" ]; then \ - echo "Requesting cert for $$domain..."; \ - sudo systemctl start "$$unit" & \ - fi; \ - done; \ - wait; \ - echo "Done. Check status with: systemctl list-units 'acme-order-renew-*' --all --state=failed" +lock: + nix flake lock