dotfiles.nix/nixos/ssh-access.nix

14 lines
252 B
Nix

{ flake, ... }:
{
# remote access
users.users =
let
inherit (flake.config.users) me me';
myKeys = me'.sshKeys;
in
{
root.openssh.authorizedKeys.keys = myKeys;
${me}.openssh.authorizedKeys.keys = myKeys;
};
}