home/ssh: use modern tmpfiles module
This commit is contained in:
parent
c2398ba93b
commit
f87d54e83b
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user