infra/modules/darwin/common/users.nix
2025-01-30 04:48:14 +00:00

17 lines
409 B
Nix

{ inputs, pkgs, ... }:
let
authorizedKeys = {
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPoUUwDIYFzuUk8pxzekyVhqdYhShAtRAG+K3AJMMdjz" # effects-deployment
];
keyFiles = pkgs.lib.filesystem.listFilesRecursive "${inputs.self}/users/keys";
};
in
{
# TODO: refactor this to share /users with nixos
users.users = {
customer.openssh = {
inherit authorizedKeys;
};
};
}