From 6b1eaa730850b4e166820324ce68077e3bdae93c Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Fri, 13 Dec 2024 18:53:15 -0600 Subject: [PATCH] added authorized ssh key --- modules/nixos-modules/ssh.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/nixos-modules/ssh.nix b/modules/nixos-modules/ssh.nix index 0360cfc..bda4e81 100644 --- a/modules/nixos-modules/ssh.nix +++ b/modules/nixos-modules/ssh.nix @@ -1,4 +1,12 @@ -{...}: { +{ + lib, + config, + ... +}: { + users.users.leyla.openssh.authorizedKeys.keys = lib.mkIf config.host.users.leyla.isTerminalUser [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHeItmt8TRW43uNcOC+eIurYC7Eunc0V3LGocQqLaYj leyla@horizon" + ]; + services = { openssh = { enable = true;