Compare commits

...

3 Commits

Author SHA1 Message Date
659cc31bc4 ssh is a system setting not user
Some checks are pending
Flake.lock / build (push) Waiting to run
2024-08-30 22:27:45 +02:00
dc8ff6f915 add public key for ssh 2024-08-30 22:21:47 +02:00
3cb57f203e add ssh for hosts 2024-08-30 22:18:24 +02:00
2 changed files with 12 additions and 0 deletions

View File

@ -34,6 +34,7 @@
./modules/system/networking ./modules/system/networking
./modules/system/nixsettings ./modules/system/nixsettings
./modules/system/shell ./modules/system/shell
./modules/system/ssh
./modules/system/systemversion ./modules/system/systemversion
./modules/system/upgrades ./modules/system/upgrades
./modules/system/users ./modules/system/users

View File

@ -0,0 +1,11 @@
{ user, ... }:
{
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
users.users.${user}.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEun1YkEfxTpcsQk7ZIwuVTcSsVHjwuKA7xOW4TAi3SE mo@workstation"
];
}