mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 14:14:07 +02:00
Compare commits
3 Commits
c28278bd6d
...
659cc31bc4
Author | SHA1 | Date | |
---|---|---|---|
659cc31bc4 | |||
dc8ff6f915 | |||
3cb57f203e |
@ -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
|
||||||
|
11
modules/system/ssh/default.nix
Normal file
11
modules/system/ssh/default.nix
Normal 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"
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user