mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-11-04 19:54:41 +00:00
* modules/rosenthal/packages/networking.scm (tailscale): Update to 1.90.4. [arguments] <#:phases>: Move PATH modification to ... * modules/rosenthal/packages/patches/tailscale-set-guix-system-PATH-for-SSH.patch: ... this patch.
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From 06ab33a4317d41953ad167bfabd5b5ff4e001fee Mon Sep 17 00:00:00 2001
|
|
From: Hilton Chain <hako@ultrarare.space>
|
|
Date: Wed, 29 Oct 2025 18:58:27 +0800
|
|
Subject: [PATCH] Set Guix System PATH for Tailscale SSH.
|
|
|
|
---
|
|
ssh/tailssh/user.go | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/ssh/tailssh/user.go b/ssh/tailssh/user.go
|
|
index ac92c762a..fccc5cbf5 100644
|
|
--- a/ssh/tailssh/user.go
|
|
+++ b/ssh/tailssh/user.go
|
|
@@ -109,9 +109,9 @@ func defaultPathForUser(u *user.User) string {
|
|
return defaultPathForUserOnNixOS(u)
|
|
}
|
|
if isRoot {
|
|
- return "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
+ return "/run/privileged/bin:/run/current-system/profile/sbin:/run/current-system/profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
}
|
|
- return "/usr/local/bin:/usr/bin:/bin"
|
|
+ return "/run/privileged/bin:/run/current-system/profile/sbin:/run/current-system/profile/bin:/usr/local/bin:/usr/bin:/bin"
|
|
}
|
|
|
|
func defaultPathForUserOnNixOS(u *user.User) string {
|
|
--
|
|
2.51.0
|
|
|