From b81e2699d6c87e277f384a89b9b32d1292dd9bd4 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 14 Jan 2026 21:24:08 -0800 Subject: [PATCH] Strip :straight keywords from tangled config for container straight.el is not available in the minimal container Emacs, so we need to remove :straight nil and :straight t from use-package declarations in the tangled config files. Co-Authored-By: Claude Opus 4.5 --- nixos/org-agenda-api.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/org-agenda-api.nix b/nixos/org-agenda-api.nix index 6fcb4ad0..19d6bba4 100644 --- a/nixos/org-agenda-api.nix +++ b/nixos/org-agenda-api.nix @@ -19,10 +19,12 @@ let --eval '(require (quote org))' \ --eval '(org-babel-tangle-file "work/org-config.org")' - # Copy all tangled files to output + # Copy all tangled files to output, stripping :straight keywords + # (straight.el is not available in the minimal container Emacs) for f in work/org-config-*.el; do if [ -f "$f" ]; then - cp "$f" $out/ + # Remove :straight nil and :straight t from use-package declarations + sed -e 's/:straight nil//g' -e 's/:straight t//g' "$f" > "$out/$(basename "$f")" fi done