I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
447 B

  1. # This file is controlled by /etc/dotfiles/README.org
  2. { config, options, lib, pkgs, ... }:
  3. with lib;
  4. with lib.types;
  5. let cfg = config.modules.ssh;
  6. in {
  7. options.modules.ssh = {
  8. enable = mkOption {
  9. type = bool;
  10. default = false;
  11. };
  12. };
  13. config = mkIf cfg.enable {
  14. services.openssh = {
  15. enable = true;
  16. settings = {
  17. PermitRootLogin = "no";
  18. PasswordAuthentication = false;
  19. };
  20. };
  21. };
  22. }