mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
16 lines
394 B
Nix
16 lines
394 B
Nix
{ self, ... }:
|
|
{
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PermitRootLogin = "yes";
|
|
};
|
|
users.users.swarsel.openssh.authorizedKeys.keyFiles = [
|
|
(self + /secrets/keys/authorized_keys)
|
|
(self + /secrets/keys/magicant.pub)
|
|
];
|
|
users.users.root.openssh.authorizedKeys.keyFiles = [
|
|
(self + /secrets/keys/authorized_keys)
|
|
(self + /secrets/keys/magicant.pub)
|
|
];
|
|
|
|
}
|