From 1c36f1b3737c152b1b9be0ce500a12d15e80597c Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 23 Mar 2023 13:16:58 +0000 Subject: [PATCH] demonstrate adding ssh keys --- examples/arhcive.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/arhcive.nix b/examples/arhcive.nix index 0550848..1da0db1 100644 --- 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";