From bc026ea567e886ba0ae89605d2605b5bebe726b8 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Wed, 9 Aug 2023 15:11:50 +0300 Subject: [PATCH] Add SSH banner --- common/remote-access.nix | 7 +++++++ machines/vetus/configuration.nix | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common/remote-access.nix b/common/remote-access.nix index af1aa9c..5357324 100644 --- a/common/remote-access.nix +++ b/common/remote-access.nix @@ -4,6 +4,13 @@ services.openssh = { enable = true; settings.PasswordAuthentication = false; + banner = '' + +Authorized access only! + +If you are not authorized to access or use this system, disconnect now! + + ''; }; programs.mosh.enable = true; } \ No newline at end of file diff --git a/machines/vetus/configuration.nix b/machines/vetus/configuration.nix index 800cf08..9d3c772 100644 --- a/machines/vetus/configuration.nix +++ b/machines/vetus/configuration.nix @@ -7,8 +7,6 @@ boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "vetus"; - time.timeZone = "Europe/Moscow"; - system.stateVersion = "23.05"; }