From ffefe7451493c075defe77b8d6b6c3fd81a81533 Mon Sep 17 00:00:00 2001 From: Root Date: Thu, 25 Feb 2021 22:25:17 +0000 Subject: [PATCH] Add ssh key to state --- config/hosts/plato.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/hosts/plato.nix b/config/hosts/plato.nix index d0dc36c..ba3709d 100644 --- a/config/hosts/plato.nix +++ b/config/hosts/plato.nix @@ -21,6 +21,11 @@ with lib; { Defaults lecture = never ''; + systemd.tmpfiles.rules = [ + "L /root/.ssh/id_rsa - - - - /state/root/ssh/id_rsa" + "L /root/.ssh/id_rsa.pub - - - - /state/root/ssh/id_rsa.pub" + ]; + services = { openssh = { hostKeys = [