commit 1c36f1b3737c152b1b9be0ce500a12d15e80597c parent beb6e260d4e071408026bf86f90afd7bb6493d3c Author: Daniel Barlow <dan@telent.net> Date: Thu, 23 Mar 2023 13:16:58 +0000 demonstrate adding ssh keys Diffstat:
| M | examples/arhcive.nix | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/examples/arhcive.nix b/examples/arhcive.nix @@ -214,7 +214,13 @@ in rec { watchdog ]; }; - users.root.passwd = lib.mkForce secrets.root_password; + + users.root = { + passwd = lib.mkForce secrets.root_password; + # openssh.authorizedKeys.keys = [ + # (builtins.readFile "/home/dan/.ssh/id_rsa.pub") + # ]; + }; users.store = { uid=500; gid=500; gecos="Storage owner"; dir="/srv";