home/ssh: use modern tmpfiles module
This commit is contained in:
@ -26,8 +26,14 @@ in
|
|||||||
controlPath = "${controlMastersDir}/%r@%h:%p";
|
controlPath = "${controlMastersDir}/%r@%h:%p";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.tmpfiles.rules = [
|
systemd.user.tmpfiles.settings."10-ssh" = {
|
||||||
"d ${controlMastersDir} 0700 ${config.home.username} - - -"
|
${controlMastersDir}.d = {
|
||||||
"f ${config.home.homeDirectory}/.ssh/mutable_config 0600 ${config.home.username} - - -"
|
user = config.home.username;
|
||||||
];
|
mode = "0700";
|
||||||
|
};
|
||||||
|
"${config.home.homeDirectory}/.ssh/mutable_config".f = {
|
||||||
|
user = config.home.username;
|
||||||
|
mode = "0600";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user