home/ssh: better choice of controlPaths
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
runtimeDir = "/run/user/${toString config.home.uid}";
|
runtimeDir = "/run/user/${toString config.home.uid}";
|
||||||
controlMastersDir = "${runtimeDir}/ssh-controlmasters";
|
controlMastersDir = "${runtimeDir}/ssh";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -23,7 +23,7 @@ in
|
|||||||
|
|
||||||
controlMaster = "auto";
|
controlMaster = "auto";
|
||||||
controlPersist = "10m";
|
controlPersist = "10m";
|
||||||
controlPath = "${controlMastersDir}/%r@%h:%p";
|
controlPath = "${controlMastersDir}/%n%C";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.tmpfiles.settings."10-ssh" = {
|
systemd.user.tmpfiles.settings."10-ssh" = {
|
||||||
|
Reference in New Issue
Block a user