We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 150552d commit 1cbed6dCopy full SHA for 1cbed6d
1 file changed
modules/common/programs/terminal/tools/ssh/default.nix
@@ -22,8 +22,8 @@ let
22
let
23
remote = other-hosts.${name};
24
remote-user-name = remote.username;
25
- # Assume standard UID 1000 for primary users, or use a default
26
- remote-user-id = "1000";
+ # Use system-specific default UIDs: macOS starts at 501, Linux at 1000
+ remote-user-id = if remote.system == "darwin" then "501" else "1000";
27
28
forward-gpg =
29
lib.optionalString (config.programs.gnupg.agent.enable && remote.gpgAgent)
0 commit comments