dotfiles.nix/nixos/ssh-access.nix

11 lines
232 B
Nix
Raw Normal View History

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