mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 08:25:07 +03:00
Add SSH banner
This commit is contained in:
parent
c2535f5754
commit
bc026ea567
2 changed files with 7 additions and 2 deletions
|
@ -4,6 +4,13 @@
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PasswordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
|
banner = ''
|
||||||
|
|
||||||
|
Authorized access only!
|
||||||
|
|
||||||
|
If you are not authorized to access or use this system, disconnect now!
|
||||||
|
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
programs.mosh.enable = true;
|
programs.mosh.enable = true;
|
||||||
}
|
}
|
|
@ -7,8 +7,6 @@
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
networking.hostName = "vetus";
|
networking.hostName = "vetus";
|
||||||
time.timeZone = "Europe/Moscow";
|
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue