mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-30 10:05:17 +08:00
18 lines
394 B
Nix
18 lines
394 B
Nix
{ flake, pkgs, lib, ... }:
|
|
|
|
{
|
|
# Let me login
|
|
users.users =
|
|
let
|
|
people = flake.config.people;
|
|
myKeys = people.users.${people.myself}.sshKeys;
|
|
in
|
|
{
|
|
root.openssh.authorizedKeys.keys = myKeys;
|
|
${people.myself} = {
|
|
openssh.authorizedKeys.keys = myKeys;
|
|
} // lib.optionalAttrs pkgs.stdenv.isLinux {
|
|
isNormalUser = true;
|
|
};
|
|
};
|
|
}
|