home/ssh: better choice of controlPaths

This commit is contained in:
2025-04-09 13:12:24 +02:00
parent 18e932be29
commit 70356efa1a

View File

@@ -1,7 +1,7 @@
{ config, pkgs, ... }:
let
runtimeDir = "/run/user/${toString config.home.uid}";
controlMastersDir = "${runtimeDir}/ssh-controlmasters";
controlMastersDir = "${runtimeDir}/ssh";
in
{
imports = [
@@ -23,7 +23,7 @@ in
controlMaster = "auto";
controlPersist = "10m";
controlPath = "${controlMastersDir}/%r@%h:%p";
controlPath = "${controlMastersDir}/%n%C";
};
systemd.user.tmpfiles.settings."10-ssh" = {