home/ssh: use modern tmpfiles module

This commit is contained in:
Oystein Kristoffer Tveit 2025-04-03 18:37:40 +02:00
parent c2398ba93b
commit f87d54e83b
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

@ -26,8 +26,14 @@ in
controlPath = "${controlMastersDir}/%r@%h:%p";
};
systemd.user.tmpfiles.rules = [
"d ${controlMastersDir} 0700 ${config.home.username} - - -"
"f ${config.home.homeDirectory}/.ssh/mutable_config 0600 ${config.home.username} - - -"
];
systemd.user.tmpfiles.settings."10-ssh" = {
${controlMastersDir}.d = {
user = config.home.username;
mode = "0700";
};
"${config.home.homeDirectory}/.ssh/mutable_config".f = {
user = config.home.username;
mode = "0600";
};
};
}