From 4f4bea2a016f0adb1d3eaeffefafca734353def0 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra <kiara@procolix.eu> Date: Sun, 30 Mar 2025 13:12:32 +0200 Subject: [PATCH] use a mutable HOME in TF for nixos-anywhere to make a `.ssh` dir in - will this not backfire? --- panel/src/panel/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panel/src/panel/views.py b/panel/src/panel/views.py index a3c51e13..2299751b 100644 --- a/panel/src/panel/views.py +++ b/panel/src/panel/views.py @@ -132,8 +132,10 @@ class DeploymentStatus(ConfigurationForm): deployment_params = dummy_user | json.loads(submission) env = { "PATH": settings.bin_path, - # used in nixos-anywhere for ssh-copy-id - "HOME": expanduser("~"), + # used in nixos-anywhere for ssh-copy-id to make `.ssh` in for ssh-copy-id. + # run thru subprocess, HOME points to the read-only `/var/empty`. + # in local dev, it will just reject the `/tmp` and make it in HOME after all. + "HOME": "/tmp", "XDG_CACHE_HOME": "/tmp", } | { # pass in form info to our deployment