Files
Rosenthal/modules/rosenthal/packages/patches/tailscale-set-guix-system-PATH-for-SSH.patch
T
Hilton Chain 0c7b110f44 rosenthal: tailscale: Update to 1.104.6.
* modules/rosenthal/packages/networking.scm (tailscale): Update to 1.104.6.
  [arguments] <#:vendor-hash>: Update.
* modules/rosenthal/packages/patches/tailscale-set-guix-system-PATH-for-SSH.patch:
Update patch.
2026-12-05 19:42:19 +08:00

48 lines
1.4 KiB
Diff

From 1e845f9a5c5854ce6a0f5d66c4a8f997ec881a67 Mon Sep 17 00:00:00 2001
From: Hilton Chain <hako@ultrarare.space>
Date: Sat, 10 Oct 2026 09:17:00 +0800
Subject: [PATCH] Set Guix System PATH for Tailscale SSH.
---
ssh/tailssh/user_unix.go | 2 ++
version/distro/distro.go | 3 +++
2 files changed, 5 insertions(+)
diff --git a/ssh/tailssh/user_unix.go b/ssh/tailssh/user_unix.go
index d482b09ba..f68ebf82b 100644
--- a/ssh/tailssh/user_unix.go
+++ b/ssh/tailssh/user_unix.go
@@ -102,6 +102,8 @@ func defaultPathForUser(u *userMeta) string {
return "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
case distro.NixOS:
return defaultPathForUserOnNixOS(&u.User)
+ case distro.Guix:
+ return "/run/privileged/bin:/run/current-system/profile/sbin:/run/current-system/profile/bin"
}
if isRoot {
return "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
diff --git a/version/distro/distro.go b/version/distro/distro.go
index 5407f8dae..2a6312bf7 100644
--- a/version/distro/distro.go
+++ b/version/distro/distro.go
@@ -34,6 +34,7 @@
Alpine = Distro("alpine")
UBNT = Distro("ubnt") // Ubiquiti Networks
JetKVM = Distro("jetkvm")
+ Guix = Distro("guix")
)
var distro lazy.SyncValue[Distro]
@@ -112,6 +113,8 @@ func linuxDistro() Distro {
return Alpine
case runtime.GOARCH == "arm" && isDeviceModel("JetKVM"):
return JetKVM
+ case have("/run/current-system/parameters"):
+ return Guix
}
return ""
}
--
2.55.0