summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-03 14:19:43 -0800
committerPreston Pan <ret2pop@nullring.xyz>2026-03-03 14:19:43 -0800
commita65c39e97bb47a415707041340f9c4fd09450550 (patch)
tree1dc5d5e2a4dd0e950d66eb3bec1225b20fd30801 /flake.nix
parent8b4440ed38648c0c77129144ab2868f511448735 (diff)
fix emacs in submodule
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 0191615..3a2e474 100644
--- a/flake.nix
+++ b/flake.nix
@@ -41,15 +41,22 @@ fi
website = pkgs.stdenv.mkDerivation {
name = "org-publish-website";
src = pkgs.lib.cleanSource ./.;
- buildInputs = [ ci-emacs ];
+ buildInputs = [
+ ci-emacs
+ pkgs.git
+ ];
buildPhase = ''
+export HOME=$TMPDIR/fake-home
+mkdir -p $HOME/.emacs.d
mkdir -p public
+ln -s "$(pwd)" $HOME/monorepo
emacs -Q --batch \
+ --eval '(setq noninteractive t)' \
--eval '(setq system-email "ci@dummy.local")' \
--eval '(setq system-username "ci-runner")' \
--eval '(setq system-fullname "CI Pipeline")' \
--eval '(setq system-gpgkey "00000000")' \
- -l ./nix/init.el \
+ -l ${hyprnixmacs}/init.el \
--eval '(org-publish-all t)'
'';