dotfiles.nix/nixos/ssh-access.nix

14 lines
250 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
2024-07-20 00:59:11 +00:00
inherit (flake.config) me;
myKeys = me.sshKeys;
2024-07-18 14:16:04 +00:00
in
{
root.openssh.authorizedKeys.keys = myKeys;
2024-07-20 00:59:11 +00:00
${me.username}.openssh.authorizedKeys.keys = myKeys;
2024-07-18 14:16:04 +00:00
};
2023-10-26 02:37:42 +00:00
}