User tmpfiles aren't working, since the user systemd isn't running

This commit is contained in:
Root 2021-03-03 19:34:49 +00:00
parent d2a6f860a2
commit 601f5ccc51
2 changed files with 8 additions and 7 deletions

View File

@ -21,6 +21,14 @@ with lib; {
Defaults lecture = never
'';
systemd.tmpfiles.rules = [
"L /root/.gnupg - - - - /state/root/gnupg"
"L /root/.emacs.d - - - - /state/root/emacs.d"
"L /root/.ssh/id_rsa - - - - /state/root/ssh/id_rsa"
"L /root/.ssh/id_rsa.pub - - - - /state/root/ssh/id_rsa.pub"
"L /root/.ssh/known_hosts - - - - /state/root/ssh/known_hosts"
];
services = {
openssh = {
hostKeys = [

View File

@ -38,11 +38,4 @@ in {
HISTCONTROL = "ignoredups:ignorespace";
};
};
systemd.user.tmpfiles.rules = [
"L /root/.gnupg - - - - /state/root/gnupg"
"L /root/.emacs.d - - - - /state/root/emacs.d"
"L /root/.ssh/id_rsa - - - - /state/root/ssh/id_rsa"
"L /root/.ssh/id_rsa.pub - - - - /state/root/ssh/id_rsa.pub"
];
}