# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
#
# SPDX-License-Identifier: LGPL-3.0-or-later
{lib, ...}: let
  inherit
    (lib)
    singleton
    ;
in {
  nix.settings.trusted-users = singleton "@wheel";

  services.openssh = {
    enable = true;
    settings = {
      PasswordAuthentication = false;
      PermitRootLogin = "no";
      AcceptEnv = "INSIDE_EMACS";
      StreamLocalBindUnlink = true;
    };
  };
}