dotfiles.nix/nixos/ssh-access.nix

14 lines
252 B
Nix
Raw Normal View History

2024-07-18 14:16:04 +00:00
{ flake, ... }:
{
2023-10-26 02:37:42 +00:00
# remote access
2024-07-18 14:16:04 +00:00
users.users =
let
inherit (flake.config.users) me me';
myKeys = me'.sshKeys;
in
{
root.openssh.authorizedKeys.keys = myKeys;
${me}.openssh.authorizedKeys.keys = myKeys;
};
2023-10-26 02:37:42 +00:00
}