nix-config-legacy/modules/users/mikl.nix

20 lines
No EOL
737 B
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mikl — пользователь с SSH-доступом
# Ключи захардкожены (recovery-friendly — не зависит ни от чего)
{ pkgs, ... }:
{
users.users.mikl = {
isNormalUser = true;
extraGroups = [ "wheel" ];
uid = 1000;
# Hardcoded ключи — надёжно, не зависит от forgejo
openssh.authorizedKeys.keys = [
# poppy-legacy (id_ed25519) — основной ключ
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH0TxZWagV8rjwJkmspEyLyyW9Uwty99pkVx4/pgO3Zj poppy-legacy"
];
# TODO: подключить git.iscg.dev/mikl.keys через fetchurl когда починим sha256
# openssh.authorizedKeys.keyFiles = [ forgejoKeys ];
};
}