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;